zoukankan      html  css  js  c++  java
  • Sqoop异常:Please set $ACCUMULO_HOME to the root of your Accumulo installation.

    shell-init: 获取当前目录时出错: getcwd: 无法访问父目录: 没有那个文件或目录
    chdir: 获取当前目录时出错: getcwd: 无法访问父目录: 没有那个文件或目录
    chdir: 获取当前目录时出错: getcwd: 无法访问父目录: 没有那个文件或目录
    Warning: /mnt/software/sqoop-1.4.6-cdh5.7.0/../hcatalog does not exist! HCatalog jobs will fail.
    Please set $HCAT_HOME to the root of your HCatalog installation.
    Warning: /mnt/software/sqoop-1.4.6-cdh5.7.0/../accumulo does not exist! Accumulo imports will fail.
    Please set $ACCUMULO_HOME to the root of your Accumulo installation.
    shell-init: 获取当前目录时出错: getcwd: 无法访问父目录: 没有那个文件或目录
    chdir: 获取当前目录时出错: getcwd: 无法访问父目录: 没有那个文件或目录
    chdir: 获取当前目录时出错: getcwd: 无法访问父目录: 没有那个文件或目录
    shell-init: 获取当前目录时出错: getcwd: 无法访问父目录: 没有那个文件或目录
    chdir: 获取当前目录时出错: getcwd: 无法访问父目录: 没有那个文件或目录
    chdir: 获取当前目录时出错: getcwd: 无法访问父目录: 没有那个文件或目录
    chdir: 获取当前目录时出错: getcwd: 无法访问父目录: 没有那个文件或目录
    Error occurred during initialization of VM
    java.lang.Error: Properties init: Could not determine current working directory.
    at java.lang.System.initProperties(Native Method)
    at java.lang.System.initializeSystemClass(System.java:1166)

    解决方案:配置Accumulo目录

    [root@hdp1 /mnt/software/tmp]#mkdir /mnt/software/tmp/accumulo

    [root@hdp1 /mnt/software/tmp]#export ACCUMULO_HOME=/mnt/software/tmp/accumulo

    环境变量 也可以永久设置在 /etc/profile里面 

    [root@hdp1 /mnt/software/tmp]#vim /etc/profile
    [root@hdp1 /mnt/software/tmp]#source /etc/profile

    再次运行 解决错误

  • 相关阅读:
    linux命令应用之一
    HIVE配置错误信息
    二分查找(JAVA)
    HBase1.0.1.1 API与原来有所不同
    hbase shell中log4j重复问题
    hadoop本地库无法加载
    利用mapreduce将数据从hdfs导入到hbase遇到的问题
    HBase伪分布式环境下,HBase的API操作,遇到的问题
    Hadoop开发中,如何开启、关闭控制台打印调试信息
    Hadoop的mapreduce开发过程,我遇到的错误集锦(持续更新)
  • 原文地址:https://www.cnblogs.com/QuestionsZhang/p/10082793.html
Copyright © 2011-2022 走看看