SessionStart SESSION_ID="hadoop_201408111703" TIME="1407747834691"
QueryStart QUERY_STRING="CREATE EXTERNAL TABLE test (key string ,cf string) STORED BY 'org.apache.hadoop.hive.hbase.HBaseStorageHandler' WITH SERDEPROPERTIES ("hbase.columns.mapping" = ":key,cf:cf1") TBLPROPERTIES ("hbase.table.name" = "fog")" QUERY_ID="hadoop_20140811170404_b617e7c5-b135-48ea-8371-eb6cfdeae640" TIME="1407747890441"
Counters plan="{"queryId":"hadoop_20140811170404_b617e7c5-b135-48ea-8371-eb6cfdeae640","queryType":null,"queryAttributes":{"queryString":"CREATE EXTERNAL TABLE test (key string ,cf string) STORED BY 'org.apache.hadoop.hive.hbase.HBaseStorageHandler' WITH SERDEPROPERTIES ("hbase.columns.mapping" = ":key,cf:cf1") TBLPROPERTIES ("hbase.table.name" = "fog")"},"queryCounters":"null","stageGraph":{"nodeType":"STAGE","roots":"null","adjacencyList":"]"},"stageList":[{"stageId":"Stage-0","stageType":"DDL","stageAttributes":"null","stageCounters":"}","taskList":[{"taskId":"Stage-0_OTHER","taskType":"OTHER","taskAttributes":"null","taskCounters":"null","operatorGraph":"null","operatorList":"]","done":"false","started":"false"}],"done":"false","started":"false"}],"done":"false","started":"true"}" TIME="1407747890470"
TaskStart TASK_NAME="org.apache.hadoop.hive.ql.exec.DDLTask" TASK_ID="Stage-0" QUERY_ID="hadoop_20140811170404_b617e7c5-b135-48ea-8371-eb6cfdeae640" TIME="1407747890476"
Counters plan="{"queryId":"hadoop_20140811170404_b617e7c5-b135-48ea-8371-eb6cfdeae640","queryType":null,"queryAttributes":{"queryString":"CREATE EXTERNAL TABLE test (key string ,cf string) STORED BY 'org.apache.hadoop.hive.hbase.HBaseStorageHandler' WITH SERDEPROPERTIES ("hbase.columns.mapping" = ":key,cf:cf1") TBLPROPERTIES ("hbase.table.name" = "fog")"},"queryCounters":"null","stageGraph":{"nodeType":"STAGE","roots":"null","adjacencyList":"]"},"stageList":[{"stageId":"Stage-0","stageType":"DDL","stageAttributes":"null","stageCounters":"}","taskList":[{"taskId":"Stage-0_OTHER","taskType":"OTHER","taskAttributes":"null","taskCounters":"null","operatorGraph":"null","operatorList":"]","done":"false","started":"true"}],"done":"false","started":"true"}],"done":"false","started":"true"}" TIME="1407747890482"
Counters plan="{"queryId":"hadoop_20140811170404_b617e7c5-b135-48ea-8371-eb6cfdeae640","queryType":null,"queryAttributes":{"queryString":"CREATE EXTERNAL TABLE test (key string ,cf string) STORED BY 'org.apache.hadoop.hive.hbase.HBaseStorageHandler' WITH SERDEPROPERTIES ("hbase.columns.mapping" = ":key,cf:cf1") TBLPROPERTIES ("hbase.table.name" = "fog")"},"queryCounters":"null","stageGraph":{"nodeType":"STAGE","roots":"null","adjacencyList":"]"},"stageList":[{"stageId":"Stage-0","stageType":"DDL","stageAttributes":"null","stageCounters":"}","taskList":[{"taskId":"Stage-0_OTHER","taskType":"OTHER","taskAttributes":"null","taskCounters":"null","operatorGraph":"null","operatorList":"]","done":"true","started":"true"}],"done":"true","started":"true"}],"done":"false","started":"true"}" TIME="1407747894570"
TaskEnd TASK_RET_CODE="0" TASK_NAME="org.apache.hadoop.hive.ql.exec.DDLTask" TASK_ID="Stage-0" QUERY_ID="hadoop_20140811170404_b617e7c5-b135-48ea-8371-eb6cfdeae640" TIME="1407747894570"
QueryEnd QUERY_STRING="CREATE EXTERNAL TABLE test (key string ,cf string) STORED BY 'org.apache.hadoop.hive.hbase.HBaseStorageHandler' WITH SERDEPROPERTIES ("hbase.columns.mapping" = ":key,cf:cf1") TBLPROPERTIES ("hbase.table.name" = "fog")" QUERY_ID="hadoop_20140811170404_b617e7c5-b135-48ea-8371-eb6cfdeae640" QUERY_RET_CODE="0" QUERY_NUM_TASKS="0" TIME="1407747894570"
Counters plan="{"queryId":"hadoop_20140811170404_b617e7c5-b135-48ea-8371-eb6cfdeae640","queryType":null,"queryAttributes":{"queryString":"CREATE EXTERNAL TABLE test (key string ,cf string) STORED BY 'org.apache.hadoop.hive.hbase.HBaseStorageHandler' WITH SERDEPROPERTIES ("hbase.columns.mapping" = ":key,cf:cf1") TBLPROPERTIES ("hbase.table.name" = "fog")"},"queryCounters":"null","stageGraph":{"nodeType":"STAGE","roots":"null","adjacencyList":"]"},"stageList":[{"stageId":"Stage-0","stageType":"DDL","stageAttributes":"null","stageCounters":"}","taskList":[{"taskId":"Stage-0_OTHER","taskType":"OTHER","taskAttributes":"null","taskCounters":"null","operatorGraph":"null","operatorList":"]","done":"true","started":"true"}],"done":"true","started":"true"}],"done":"true","started":"true"}" TIME="1407747894571"
QueryStart QUERY_STRING="select * from test limit 5" QUERY_ID="hadoop_20140811170505_804fc1b0-b201-445d-9df1-3573dd7a1980" TIME="1407747956375"
Counters plan="{"queryId":"hadoop_20140811170505_804fc1b0-b201-445d-9df1-3573dd7a1980","queryType":null,"queryAttributes":{"queryString":"select * from test limit 5"},"queryCounters":"null","stageGraph":{"nodeType":"STAGE","roots":"null","adjacencyList":"]"},"stageList":"]","done":"false","started":"true"}" TIME="1407747956375"
QueryEnd QUERY_STRING="select * from test limit 5" QUERY_ID="hadoop_20140811170505_804fc1b0-b201-445d-9df1-3573dd7a1980" QUERY_RET_CODE="0" QUERY_NUM_TASKS="0" TIME="1407747956375"
Counters plan="{"queryId":"hadoop_20140811170505_804fc1b0-b201-445d-9df1-3573dd7a1980","queryType":null,"queryAttributes":{"queryString":"select * from test limit 5"},"queryCounters":"null","stageGraph":{"nodeType":"STAGE","roots":"null","adjacencyList":"]"},"stageList":"]","done":"true","started":"true"}" TIME="1407747956375"
你说的是不是这类log:
上面的log是hive创建 EXTERNAL表关联hbase 已存在表信息:
hive 查询结果:
hive > select * from test limit 5;
14/08/11 17:05:55 INFO metastore.HiveMetaStore: 3: source:/10.10.4.207 get_table : db=default tbl=test
14/08/11 17:05:55 INFO HiveMetaStore.audit: ugi=hadoop ip=/10.10.4.207 cmd=source:/10.10.4.207 get_table : db=default tbl=test
OK
Failed with exception java.io.IOException:java.lang.NullPointerException
Time taken: 1.074 seconds
|