文章目录
![在这里插入图片描述](https://img-blog.csdnimg.cn/20191127220944634.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3FxXzIxMzgzNDM1,size_16,color_FFFFFF,t_70)
一:当在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 c