采用hbase org.apache.hadoop.hbase.mapreduce.Driver import test /etc/test语句像hbase中写入数据时,要注意两点:1、启动nameNode、dataNode、yarn、historyserver;2、导数据之前先在hbase中创建表。
问题描述
采用hbase org.apache.hadoop.hbase.mapreduce.Driver import test /etc/test语句 向hbase写入数据时,报错信息为:2020-07-06 15:24:11,546 INFO [main] ipc.Client: Retrying connect to server: localhost/127.0.0.1:18040. Already tried 0 time(s); retry policy is RetryUpToMaximumCountWithFixedSleep(maxRetries=10, sleepTime=1000 MILLISECONDS)。
解决方案
1、完善map.xml文件
2、./mr-jobhistory-daemon.sh start historyserver
3、start-yarn.sh
再次执行hbase org.apache.hadoop.hbase.mapreduce.Driver import test /etc/test,又出现错误:
问题描述
Error: org.apache.hadoop.hbase.client.RetriesExhaustedWithDetailsException: Failed 6 actions: bjdict: 6 times, servers with issues: null
解决方案
导入数据之前,需要提前创建test表