本地搭建hadoop集群-各种报错,不断更新

20180716:

Unable to obtain hostName

java.net.UnknownHostException: hadoop100: hadoop100

解决方案:

vi /etc/hosts 查看集群对应ip 名称

192.168.77.100 master
192.168.77.101 slave1
192.168.77.102 slave2
192.168.77.103 slave3
192.168.77.104 slave4
192.168.77.105 slave5
192.168.77.106 slave6

192.168.77.107 slave7

我使用的机器是100

vi /etc/sysconfig/network 查看本机名称

我的本机名称是 hadoop100 则将 HOSTNAME改为master 即可

NETWORKING=yes

HOSTNAME=master

退出保存。

sync

reboot

在执行命令 

hadoop jar share/hadoop/mapreduce/hadoop-mapreduce-examples-2.7.6.jar grep test_input/ test_output 'dfs[a-z.]+

发现可以正常执行,不报错了。

 

20170803

关于hive 

This command is not allowed on an ACID table XXX with a non-ACID 
transaction manager.failed command select * from tb

解决方案

Configuration

Minimally, these configuration parameters must be set appropriately to turn on transaction support in Hive:

Client Side

Server Side (Metastore)

The following sections list all of the configuration parameters that affect Hive transactions and compaction.  Also see Limitations above and Table Properties below.

参考:https://cwiki.apache.org/confluence/display/Hive/Hive+Transactions

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值