您的位置:首页 > 运维架构 > Apache

安装Apache Kylin时遇到的问题

2016-11-08 21:59 323 查看
一:当在ubuntu下执行check_env.sh时遇到问题:
KYLIN_HOME is set to /usr/local/apache-kylin-1.5.4.1-bin cat: invalid option -- '1' Try 'cat --help' for more information. -mkdir: Not enough arguments: expected 1 but got 0 Usage: hadoop fs [generic options] -mkdir [-p] ... failed to create , Please make sure the user has right to access
可能是由于get-properties.sh里的某条命令与ubuntu不相符,将get-propertie中的内容替换如下得以解决

if [ $# != 1 ]
then
echo 'invalid input'
exit -1
fi

result=`cat ${KYLIN_HOME}/conf/kylin.properties | grep -w "^$1" | grep -v '^#' | awk -F= '{ n = index($0,"="); print substr($0,n+1)}' | cut -c 1- |tail -1`
echo $result

二:当执行 ./check_env.sh 时遇到 mkdir: Permission denied: user=root, access=WRITE, inode="/":hdfs:supergroup:drwxr-xr-x
failed to create /kylin, Please make sure the user has right to access /kylin
可以在check-env.sh中 将hadoop fs -mkdir -p $WORKING_DIR 变成 sudo -u hdfs hadoop fs -mkdir -p $WORKING_DIR,得以解决
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: