Hbase的shell出现wrong number of arguments xxx以及undefined method any?for xxxx
我们大概碰到过下面这种情况
ERROR: wrong number of arguments (10 for 6)
For usage try 'help "put"'
Took 0.0015 seconds
hbase(main):066:0> put 'my_table','www.test5.com', 'cf1:price', '999', 'cf2:title','Hello Python'
ERROR: undefined method `any?' for "Hello Python":String
我一开始总是觉得自己可能是某些空格或者逗号不小心用了圆角字符,仔细查了好久,
才想到或许hbase是不支持"多列在一条命令中更新"的,
也就是:
"一条hbase命令只允许更新一个column"
所以其实你的hbase命令在语法上没有任何问题,但是不要一次性更新多个column中的值,否则会报上面的错误。
[1]中提供了3种办法:
①使用Java/Python API
②使用Phoenix
③使用hive(前提是hive已经映射了hbase)
Reference:
[1]How do I insert data into multiple columns using single HBase command?
Hbase的shell出现wrong number of arguments xxx以及undefined method any?for xxxx相关推荐
- HBase 常用Shell命令
转自:http://my.oschina.net/u/189445/blog/595232 两个月前使用过hbase,现在最基本的命令都淡忘了,留一个备查~ hbase shell命令 ...
- Compiled functions can't take variable number of arguments or use keyword-only arguments with defaul
Compiled functions can't take variable number of arguments or use keyword-only arguments with defaul ...
- Hbase的shell命令学习
在学习Hbase的shell命令,之前先得了解如何进入hbase的shell命令行,通过执行如下简单的命令回车后进入hbase的shell命令行界面 hbase shell 进入hbase命令行后,执 ...
- HBase总结(二十)HBase常用shell命令详细说明
进入hbase shell console $HBASE_HOME/bin/hbase shell 如果有kerberos认证,需要事先使用相应的keytab进行一下认证(使用kinit命令),认证成 ...
- C++工作笔记-hiredis中关于ERR wrong number of arguments for HMSET问题的解决
这里有个坑 使用hiredis的API进行调用时如果是如下命令, hmset userid:1001 username 'xiao ming' 这种语法,使用redis-cli是没有问题的,但如果使用 ...
- HBase的Shell命令和JavaAPI
HBase的shell操作和JavaAPI的使用: Shell 表操作 创建表 1 create 'student','info' #表名 列族 插入表 1 2 3 4 5 put 'student' ...
- ERR wrong number of arguments for ‘srem‘ command
ERR wrong number of arguments for 'srem' command 问题描述 再远程调用redis服务得时候,出现得这个异常,字面意思就是参数不匹配 问题解决 原因是因为 ...
- org.springframework.dao.InvalidDataAccessApiUsageException: ERR wrong number of arguments for ‘srem‘
1.报错信息 org.springframework.dao.InvalidDataAccessApiUsageException: ERR wrong number of arguments for ...
- Error Code: 1318. Incorrect number of arguments for PROCEDURE student.new_procedure; expected 0, got
1.错误描述 13:58:20 call new_procedure('2000','zhangsan') Error Code: 1318. Incorrect number of argument ...
最新文章
- 小菜鸟学 Spring-Dependency injection(二)
- leetcode 43. Multiply Strings | 43. 字符串相乘(Java)
- java开发门禁指纹,指纹门禁
- java二级考试备考_2017计算机二级考试《JAVA》备考测试题「带答案」
- Android游戏的心跳效果
- java虚拟机之二虚拟机内存结构
- 深入分析自定义表单验证与Cookies
- 英语数字的 android,英语数字听力手机版
- c#解压缩文件(zip)
- 计算机中丢失msvcr100.dll怎么办,msvcr100.dll
- web服务器遭受命令注入攻击怎么办。
- java关于地图经纬度的计算
- 成都列五中学2021年高考成绩查询,2021年成都列五中学升学率怎么样?
- 利用opencv+QT打开并显示图片
- 前端xlsx插件简单说明
- 全国计算机技术与软件专业技术考试----(中级资格/工程师)各资格证详细介绍
- 渗透之——asp图片木马的制作和使用
- 苹果正在掀起一场战争!谷歌怒怼:你是舍不得自己的蛋糕!
- matlab自耦变压器,基于MATLAB的500kV自耦变压器建模及仿真.pdf
- 欧姆龙机器视觉软件系统fh fz fj仿真软件CCD
热门文章
- 《Linux高性能服务器编程》学习总结(四)——TCP/IP通信案例:访问Internet上的Web服务器...
- 5种IE hasLayoutt的属性及其值
- 关于js对象引用的小例子
- webform Repeater重复器、地址栏传值、Response
- 安卓.点击头像--编辑个人姓名--提交后.同时调用js关闭页面--返回上一层
- 0114练习 彩票、验证码、双色球的随机数 输出
- WordPress让文本小工具支持简码
- java中日期加减计算(转)
- XCTF_Web_新手练习区:webshell
- React Native Android端多环境自动打包