• ambari启动kylin时报A couple of hive jars can't be found: , please check jar files in current HCAT_HOME or export HCAT_HOME='YOUR_LOCAL_HCAT_HOME'错误


    在ambari集成环境下,
    ambari启动kylin时报A couple of hive jars can't be found: , please check jar files in current HCAT_HOME or export HCAT_HOME='YOUR_LOCAL_HCAT_HOME'错误,如下:

    stderr: 
    Traceback (most recent call last):
      File "/var/lib/ambari-agent/cache/stacks/HDP/3.0/services/KYLIN/package/scripts/kylin_master.py", line 75, in <module>
        KylinMaster().execute()
      File "/usr/lib/ambari-agent/lib/resource_management/libraries/script/script.py", line 352, in execute
        method(env)
      File "/var/lib/ambari-agent/cache/stacks/HDP/3.0/services/KYLIN/package/scripts/kylin_master.py", line 54, in start
        Execute(cmd, user='hdfs')
      File "/usr/lib/ambari-agent/lib/resource_management/core/base.py", line 166, in __init__
        self.env.run()
      File "/usr/lib/ambari-agent/lib/resource_management/core/environment.py", line 160, in run
        self.run_action(resource, action)
      File "/usr/lib/ambari-agent/lib/resource_management/core/environment.py", line 124, in run_action
        provider_action()
      File "/usr/lib/ambari-agent/lib/resource_management/core/providers/system.py", line 263, in action_run
        returns=self.resource.returns)
      File "/usr/lib/ambari-agent/lib/resource_management/core/shell.py", line 72, in inner
        result = function(command, **kwargs)
      File "/usr/lib/ambari-agent/lib/resource_management/core/shell.py", line 102, in checked_call
        tries=tries, try_sleep=try_sleep, timeout_kill_strategy=timeout_kill_strategy, returns=returns)
      File "/usr/lib/ambari-agent/lib/resource_management/core/shell.py", line 150, in _call_wrapper
        result = _call(command, **kwargs_copy)
      File "/usr/lib/ambari-agent/lib/resource_management/core/shell.py", line 314, in _call
        raise ExecutionFailed(err_msg, code, out, err)
    resource_management.core.exceptions.ExecutionFailed: Execution of '. /var/lib/ambari-agent/tmp/kylin_env.rc;/usr/hdp/3.1.0.0-78/kylin/bin/kylin.sh start;cp -rf /usr/hdp/3.1.0.0-78/kylin/pid /var/run/kylin/kylin.pid' returned 1. Retrieving hadoop conf dir...
    ...................................................[PASS]
    KYLIN_HOME is set to /usr/hdp/3.1.0.0-78/kylin
    Checking HBase
    ...................................................[PASS]
    Checking hive
    ...................................................[PASS]
    Checking hadoop shell
    ...................................................[PASS]
    Checking hdfs working dir
    ...................................................[PASS]
    Retrieving Spark dependency...
    ...................................................[PASS]
    Retrieving Flink dependency...
    Optional dependency flink not found, if you need this; set FLINK_HOME, or run bin/download-flink.sh
    ...................................................[PASS]
    Retrieving kafka dependency...
    Couldn't find kafka home. If you want to enable streaming processing, Please set KAFKA_HOME to the path which contains kafka dependencies.
    ...................................................[PASS]
    
    Checking environment finished successfully. To check again, run 'bin/check-env.sh' manually.
    Retrieving hive dependency...
    A couple of hive jars can't be found: , please check jar files in current HCAT_HOME or export HCAT_HOME='YOUR_LOCAL_HCAT_HOME'
    cp: cannot stat ‘/usr/hdp/3.1.0.0-78/kylin/pid’: No such file or directory
     stdout:
    
    • 解决方法:
    vim /etc/profile
    export HIVE_HOME=/usr/hdp/current/hive-server2 
    export HCAT_HOME=/usr/hdp/current/hive-webhcat
    source /etc/profile
    
    -----------------------------------------------------------
    shotting source code
  • 相关阅读:
    Vmware 6.5:vmware vm高可用-vSphere HA & Fault Tlerance
    Redis 3.2.3: 集群3哨兵模式
    Mysql 5.7.18:主从复制,io优化
    Centos 7 x64 系统初始化
    javascript小实例,阻止浏览器默认行为,真的能阻止吗?支持IE和标准浏览器的阻止默认行为的方法
    javascript小实例,移动端页面中的拖拽
    javascript小实例,PC网页里的拖拽
    javascript小实例,在页面中输出当前客户端时间
    javascript小实例,编写一个方法,实现从n-m个数中随机选出一个整数
    javascript小实例,多种方法实现数组去重问题
  • 原文地址:https://www.cnblogs.com/zh672903/p/14389206.html
Copyright © 2020-2023  润新知