My question might be a numb but this is where I am stuck now please bear with
me . Basically I want to execute bin/hadoop dfs -ls when a user in a web
page clicks a button and displays 0 if the command is executed successfully
and -1 if not executed. I have a script which runs when the user clicks the
button in the web page. The script contains a system call of
system(bin/hadoop dfs -ls) . But it is not been executed due to file
permission of hdfs when issued from www.
After googling I came to know that hdfs executes commands by identifying the
user only as a superuser. I tried to change the posix permissions of hdfs
but it took no effect. So can some one help me out?
Thanks
--
View this message in context:
http://old.nabble.com/how-to-perform-dfs--ls-as-a-request-from-www-tp30195698p30195698.html
Sent from the Hadoop core-user mailing list archive at Nabble.com.