Home | About | Sematext search-lucene.com search-hadoop.com
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB
 Search Hadoop and all its subprojects:

Switch to Threaded View
Hadoop >> mail # user >> hdfs permission unworked in hdfs nfs


Copy link to this message
-
hdfs permission unworked in hdfs nfs
Hi
  I am testing the hadoop nfs within hadoop-2.2.0.
  I succeed to mount the hdfs to my /mnt/hadoop :
#mount -t nfs -o vers=3,proto=tcp,nolock $mynamenodeIP:/ /mn/hadoop

 I test the permission check when I cp something to the /mn/hadoop,It
worked.
[root@hadoop2 ~]# cp install.log /mnt/
cp: cannot create regular file `/mnt/install.log': Permission denied
After that,I create a softlink to a Logs directory belong to php
application.
#ll -a
  lrwxrwxrwx 1 root root    11 12-12 05:06 Logs -> /mnt/hadoop

Magic thing comes out ,the permission check passed,the Logger can log to my
Logs directory[1]. I still can not write any thing as root user to the *Logs
*directory because of the permission check which is quite known before.

  Any explanation about the unworking permission in my test?
[1]Logsdirectory-------------------------------------------------------------------------------------------------------
2013-12-12 11:00:27,875 INFO org.apache.hadoop.hdfs.StateChange: BLOCK*
fsync: /.reserved/.inodes/16385/13_12_12_AGENTS_TERM.log for
DFSClient_NONMAPREDUCE_-1541949548_23
2013-12-12 11:00:27,891 INFO org.apache.hadoop.hdfs.StateChange: BLOCK*
fsync: /.reserved/.inodes/16385/13_12_12_db_Mysql.log for
DFSClient_NONMAPREDUCE_-1541949548_23
2013-12-12 11:00:27,906 INFO org.apache.hadoop.hdfs.StateChange: BLOCK*
fsync: /.reserved/.inodes/16385/13_12_12_db_Mysql.log for
DFSClient_NONMAPREDUCE_-1541949548_23
2013-12-12 11:00:27,919 INFO org.apache.hadoop.hdfs.StateChange: BLOCK*
fsync: /.reserved/.inodes/16385/13_12_12_AGENTS_TERM.log for
DFSClient_NONMAPREDUCE_-1541949548_23
2013-12-12 11:00:27,932 INFO org.apache.hadoop.hdfs.StateChange: BLOCK*
fsync: /.reserved/.inodes/16385/13_12_12_AGENTS_TERM.log for
DFSClient_NONMAPREDUCE_-1541949548_23
2013-12-12 11:00:27,945 INFO org.apache.hadoop.hdfs.StateChange: BLOCK*
fsync: /.reserved/.inodes/16385/13_12_12_AGENTS_TERM.log for
DFSClient_NONMAPREDUCE_-1541949548_23
2013-12-12 11:00:27,963 INFO org.apache.hadoop.hdfs.StateChange: BLOCK*
fsync: /.reserved/.inodes/16385/13_12_12_systemErr.log for
DFSClient_NONMAPREDUCE_-1541949548_23
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB