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
再次運行 解決錯誤