spark 读取预分region的Hbase

0
在Hbase中建立一个空表 按日期预分region如下

20170101-~

20170102-~

20170103-~

20170104-~

20170105-~

然后提交spark 任务涉及的scan范围为

startRowKey..20161203- stopRowKey..20170101_

sparksubmit之后报:

17/01/12 17:25:36 WARN TableInputFormatBase: Cannot resolve the host name for 10-10-135-166/10.10.135.166 because of javax.naming.NameNotFoundException: DNS name not found [response code 3]; remaining name '166.135.10.10.in-addr.arpa'

17/01/12 17:25:36 WARN TableInputFormatBase: Cannot resolve the host name for 10-10-135-166/10.10.135.166 because of javax.naming.NameNotFoundException: DNS name not found [response code 3]; remaining name '166.135.10.10.in-addr.arpa'

17/01/12 17:25:36 WARN TableInputFormatBase: Cannot resolve the host name for 10-10-135-166/10.10.135.166 because of javax.naming.NameNotFoundException: DNS name not found [response code 3]; remaining name '166.135.10.10.in-addr.arpa'

17/01/12 17:25:36 WARN TableInputFormatBase: Cannot resolve the host name for 10-10-135-166/10.10.135.166 because of javax.naming.NameNotFoundException: DNS name not found [response code 3]; remaining name '166.135.10.10.in-addr.arpa'

17/01/12 17:25:36 WARN TableInputFormatBase: Cannot resolve the host name for 10-10-135-166/10.10.135.166 because of javax.naming.NameNotFoundException: DNS name not found [response code 3]; remaining name '166.135.10.10.in-addr.arpa'

17/01/12 17:25:36 WARN TableInputFormatBase: Cannot resolve the host name for 10-10-135-166/10.10.135.166 because of javax.naming.NameNotFoundException: DNS name not found [response code 3]; remaining name '166.135.10.10.in-addr.arpa'

 

一共6条warn,也就是说它会请求预分配的6个region,这是为什么呢,为什么不是一个 region呢?
已邀请:
0

Bob - 同程旅游大数据+BI 架构师 2017-02-07 回答

输出6个是因为hbase在进行元数据加载时会对表的region进行处理,这个时候发现dns出现问题,机器名称无法连接
0

MarsJ - 大数据玩家~DS 2017-01-16 回答

错误应该跟代码没关系,错误显示DNS name not found,表示域名解析错误,或者你的代码里是否写死了主机名之类的。从这方面着手解决。

要回复问题请先登录注册