电商数仓项目报错及解决方法

1.hive使用tez引擎,按照教程设置后仍出现,FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.tez.TezTask
解决办法:修改tez的配置文件,tez-default-template.xml中tez.client.asynchronous-stop为false;重启集群

 
    tez.client.asynchronous-stop
    false
    Boolean value. Backwards compatibility setting. Changes TezClient stop to be a
 synchronous call waiting until AM is in a final state before returning to the user.
 Expert level setting.
    boolean
  

2.启动kylin时失败
Retrieving hive dependency…
Couldn’t find hive configuration directory. Please set HIVE_CONF to the path which contains hive-site.xml.

解决方法:
在环境变量中添加下面内容,source环境变量

export KYLIN_HOME=/opt/module/kylin-2.5.1
export PATH=$PATH:$KYLIN_HOME/bin

export HIVE_CONF=/opt/module/hive/conf
export PATH=$PATH:$HIVE_CONF

重启hive元数据服务
启动kylin即可

你可能感兴趣的:(大数据)