I am trying to create a folder in hdfs hadoop file system but it is not allowing me to create a folder using the user cloudera nor as root. What should I configure to make it to allow me to hier was my attempt:
[cloudera@quickstart ~]$ sudo hadoop fs -mkdir /solr/test_core
mkdir: Permission denied: user=root, access=WRITE, inode="/solr":solr:supergroup:drwxr-xr-x
[cloudera@quickstart ~]$ su
Password:
[root@quickstart cloudera]# hadoop fs -mkdir /solr/test_core
mkdir: Permission denied: user=root, access=WRITE,inode="/solr":solr:supergroup:drwxr-xr-x
[root@quickstart cloudera]#
Mensch :
Found the answer:\nYou should use these weird command.\n\n\n sudo -u hdfs hdfs dfs -mkdir /solr/test_core/\n",
2016-04-21T10:42:59
Prasad Khode :
Neither cloudera nor root users will have permissions to run any command on /solr\n\nto run any command you need to change into hdfs and then issue the commands like below:\n\nsu - hdfs\nhadoop fs -mkdir /solr/test_core/\nexit\n",
2016-04-22T09:29:37