Phoenix在建表是报出java.lang.ArrayIndexOutOfBoundsException的处理方法
来源:互联网 发布:淘宝网上买手机可靠吗 编辑:程序博客网 时间:2024/06/06 01:34
Phoenix在建表是报出java.lang.ArrayIndexOutOfBoundsException的处理方法
这算一个篇hello world。 碰到问题经常google到CSDN的文章,但是从来不做分享,现在看来,有能力也是时候做一些力所能及的事情了。
首先说下,产生这个问题的原因是在建表语句里,有两列重名,这样SYSTEM.CATALOG表中因为rowkey的关系,分辨不出来到底哪个一才是唯一的列名
处理办法
1. 进入hbase shell
disable 'tablename'drop 'tablename'
2. 进入phoenix sqlline
-- 先删掉关于这个表的描述delete from SYSTEM."CATALOG" where TABLE_NAME='tablename'; -- 确认是否删除成功,如果成功删除会看不到这个tablename'' select * from SYSTEM."CATALOG" where TABLE_NAME='tablename';
3. 检查,去掉重名列后重新建表
0 0
- Phoenix在建表是报出java.lang.ArrayIndexOutOfBoundsException的处理方法
- java.lang.ArrayIndexOutOfBoundsException(数组越界)处理方法
- java.lang.ArrayIndexOutOfBoundsException 翻译
- java.lang.ArrayIndexOutOfBoundsException
- java.lang.ArrayIndexOutOfBoundsException
- java.lang.ArrayIndexOutOfBoundsException: 3184
- java.lang.ArrayIndexOutOfBoundsException ireport
- java.lang.ArrayIndexOutOfBoundsException
- java.lang.ArrayIndexOutOfBoundsException
- java.lang.ArrayIndexOutOfBoundsException: 2
- [java.lang.arrayindexoutofboundsexception]错误!
- java.lang.ArrayIndexOutOfBoundsException: 160
- java.lang.ArrayIndexOutOfBoundsException
- java.lang.ArrayIndexOutOfBoundsException: 24444
- java.lang.ArrayIndexOutOfBoundsException
- java.lang.ArrayIndexOutOfBoundsException
- Activity调用isDestroyed()方法报出,java.lang.NoSuchMethodError
- java java.lang.ArrayIndexOutOfBoundsException: 1
- 字符串(一)strlen、strcpy、strcat的实现
- Android PopupWindow的使用技巧 Android上自定义弹出窗口
- 从键盘输入一个整数,然后逆序输出
- 史上最详细的iOS之事件的传递和响应机制-原理篇
- java零基础的外行人
- Phoenix在建表是报出java.lang.ArrayIndexOutOfBoundsException的处理方法
- struct device
- CSS神奇的代码-背景透明内容不透明
- 删除数组中相同的元素
- 快速排序
- socket udp
- 深入浅出RxJava_07[多线程&辅助操作(完)]
- Java面向对象三大特性归纳
- LAMP编译安装