lib-通过HIVE建立非本地表报错!!

问题描述

通过HIVE建立非本地表报错!!

hive 1.0.0 hbase 1.0.0 and hadoop 2.6.0 and zookeeper 3.4.6 建立非本地表报错~~~求帮助!!我已经吧$HBASE_HOME/lib 下所有的包都复制到$HIVE_HOME/lib下了

5/03/10 03:56:00 [htable-pool1-t1]: DEBUG ipc.AbstractRpcClient: Connecting to v2/192.168.81.131:16020
15/03/10 03:56:02 [main]: ERROR exec.DDLTask: java.lang.NoSuchMethodError: org.apache.hadoop.hbase.HTableDescriptor.addFamily(Lorg/apache/hadoop/hbase/HColumnDescriptor;)V
        at org.apache.hadoop.hive.hbase.HBaseStorageHandler.preCreateTable(HBaseStorageHandler.java:196)
        at org.apache.hadoop.hive.metastore.HiveMetaStoreClient.createTable(HiveMetaStoreClient.java:608)
        at org.apache.hadoop.hive.metastore.HiveMetaStoreClient.createTable(HiveMetaStoreClient.java:601)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:606)
        at org.apache.hadoop.hive.metastore.RetryingMetaStoreClient.invoke(RetryingMetaStoreClient.java:90)
        at com.sun.proxy.$Proxy7.createTable(Unknown Source)
        at org.apache.hadoop.hive.ql.metadata.Hive.createTable(Hive.java:671)
        at org.apache.hadoop.hive.ql.exec.DDLTask.createTable(DDLTask.java:3973)
        at org.apache.hadoop.hive.ql.exec.DDLTask.execute(DDLTask.java:295)
        at org.apache.hadoop.hive.ql.exec.Task.executeTask(Task.java:160)
        at org.apache.hadoop.hive.ql.exec.TaskRunner.runSequential(TaskRunner.java:85)
        at org.apache.hadoop.hive.ql.Driver.launchTask(Driver.java:1604)
        at org.apache.hadoop.hive.ql.Driver.execute(Driver.java:1364)
        at org.apache.hadoop.hive.ql.Driver.runInternal(Driver.java:1177)
        at org.apache.hadoop.hive.ql.Driver.run(Driver.java:1004)
        at org.apache.hadoop.hive.ql.Driver.run(Driver.java:994)
        at org.apache.hadoop.hive.cli.CliDriver.processLocalCmd(CliDriver.java:201)
        at org.apache.hadoop.hive.cli.CliDriver.processCmd(CliDriver.java:153)
        at org.apache.hadoop.hive.cli.CliDriver.processLine(CliDriver.java:364)
        at org.apache.hadoop.hive.cli.CliDriver.executeDriver(CliDriver.java:712)
        at org.apache.hadoop.hive.cli.CliDriver.run(CliDriver.java:631)
        at org.apache.hadoop.hive.cli.CliDriver.main(CliDriver.java:570)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:606)
        at org.apache.hadoop.util.RunJar.run(RunJar.java:221)
        at org.apache.hadoop.util.RunJar.main(RunJar.java:136)

FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask. org.apache.hadoop.hbase.HTableDescriptor.addFamily(Lorg/apache/hadoop/hbase/HColumnDescriptor;)V
15/03/10 03:56:02 [main]: ERROR ql.Driver: FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask. org.apache.hadoop.hbase.HTableDescriptor.addFamily(Lorg/apache/hadoop/hbase/HColumnDescriptor;)V
15/03/10 03:56:02 [main]: DEBUG ql.Driver: Shutting down query CREATE TABLE hbase_table_1(key int, value string) STORED BY 'org.apache.hadoop.hive.hbase.HBaseStorageHandler' WITH SERDEPROPERTIES ("hbase.columns.mapping" = ":key,cf1:val") TBLPROPERTIES ("hbase.table.name" = "xyz")
15/03/10 03:56:02 [main]: INFO log.PerfLogger: </PERFLOG method=Driver.execute start=1425930957507 end=1425930962331 duration=4824 from=org.apache.hadoop.hive.ql.Driver>

解决方案

https://github.com/hortonworks/hadoop-tutorials/issues/30

解决方案二:

解决了吗?

我也碰到这个问题了,:(

解决方案三:

请问这个问题解决了吗?我弄了好几天了,哭

时间: 2024-10-11 15:15:54

lib-通过HIVE建立非本地表报错!!的相关文章

hive配置Oracle创建表报错ORA-01754

问题描述 在hive配置Oracle作为远程链接元数据库,报错ORA-01754:atablemaycontainonlyonecolumnoftypeLONG根据网上资料修改"*/hive/lib/hive-metastore-1.2.1.jar"包中package.jdo文件,将<fieldname="viewOriginalText"default-fetch-group="false"><columnname="

metadata-hive建hbase关联表报错

问题描述 hive建hbase关联表报错 hadoop-2.5.2 ,hbase-1.0.1.1,hive-0.9.0 hive> CREATE TABLE hbase_table_1(key int, value string) STORED BY 'org.apache.hadoop.hive.hbase.HBaseStorageHandler' WITH SERDEPROPERTIES ("hbase.columns.mapping" = ":key,cf1:va

android建表报错no such column: touxiang

问题描述 android建表报错no such column: touxiang 新加了一个iIMAGE以后数据库报错,只有图中这么一行错 下面是我数据库的代码 package com.mlchelper.db; import java.sql.Blob; import com.mlchelper.dom.Infor_table; import android.content.ContentValues; import android.content.Context; import androi

建立procedure,怎么报错,如何修改呢

问题描述 建立procedure,怎么报错,如何修改呢 SQL> CREATE OR REPLACE PROCEDURE ACCESS_PROD_INST AS 2 BEGIN 3 INSERT INTO ACCESS_PROD_INST PROD_INST_iD SELECT PROD_INST_iD FROM ACCESS_PROD_INST@CRMBM; 4 END; 5 / CREATE OR REPLACE PROCEDURE ACCESS_PROD_INST AS BEGIN INS

异常-【ActiveReports问题】查看报表报错

问题描述 [ActiveReports问题]查看报表报错 "/"应用程序中的服务器错误. Cyclic report parameter references. 说明: 执行当前 Web 请求期间,出现未经处理的异常.请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息. 异常详细信息: GrapeCity.ActiveReports.Expressions.ExpressionObjectModel.ReportParameterException: Cyclic

sql server-从sqlsever里面拷贝个表到hive,结果报这个错,不知道为啥

问题描述 从sqlsever里面拷贝个表到hive,结果报这个错,不知道为啥 ERROR manager.CatalogQueryManager: Failed to list columns from query: SELECT COLUMN_NAME FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_SCHEMA = (SELECT SCHEMA_NAME()) AND TABLE_NAME = N'cell_info' ORDER BY ORDINAL

mysql-MYSQL连续左连接两张表报错

问题描述 MYSQL连续左连接两张表报错 SQL语句如下: SELECT * FROM channel AS a JOIN floors b ON a.ifloorid = b.id join floors c on a.ofloorid = c.id 连续连接同一张表. 这个SQL语句直接放在mysql终端执行是没有问题的. 但是当用jdbc运行的时候.提示错误: You have an error in your SQL syntax; check the manual that corre

kettle导数据表报错,求大神给解决

问题描述 kettle导数据表报错,求大神给解决 如标题所示,在学习数据迁移工具kettle,遇到问题,不会解决,求大神相助

为什么显示没有主键,我明明已经建立了啊?错在哪了

问题描述 为什么显示没有主键,我明明已经建立了啊?错在哪了 DataTable myDataTable=new DataTable(); myDataTable.PrimaryKey = new DataColumn[] { myDataTable.Columns["砂轮名称"] }; DataRow myremoveDatarow=myDataTable.Rows.Find(1);//表没有主键 listView1.Items.Remove(listView1.SelectedIte