Good Morning Sir, I tried to integrate matlab with hadoop and try to execute a simple program.But permission denied error is reported as shown in the attached fig.Could any one please help me to solve this issue.

 채택된 답변

Kojiro Saito
Kojiro Saito 2017년 11월 11일

0 개 추천

The error log says, when MATLAB submitted a job to YARN, /tmp/hadoop-yarn/staging/root/.staging directory in HDFS was used for a staging directory, but you don't have a permission of execution of the directory. Because you're using root user, but the permission of the HDFS's staging directory is nitw_viper_user:supergroup:drwx------. It means only nitw_viper_user user can Read/Write/Execute, and local root user cannot access to the directory.
Simply, changing the permission of staging directory in HDFS would solve this issue.
hadoop fs -chmod -R 777 /tmp/hadoop-yarn

댓글 수: 4

Jyothi Alugolu
Jyothi Alugolu 2017년 11월 19일
Sir, If i execute the above command it is showing the error as no such file or directory as shown in the attached figure.
The directory will be deleted after YARN job is finished or failed, so how about make directory beforehand?
hadoop fs -mkdir -p /tmp/hadoop-yarn
hadoop fs -chmod -R 777 /tmp/hadoop-yarn
then, do your MapReduce scripts.
Jyothi Alugolu
Jyothi Alugolu 2017년 11월 20일
tq..problem was solved...actually i tried your second comment without seeing your answer...anyway thanks for your response...
lov kumar
lov kumar 2019년 6월 6일
Can you please help me to fix this error:
Error using mapreduce (line 124)
The HADOOP job failed to submit. It is possible that there is some issue with the HADOOP configuration.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Environment and Settings에 대해 자세히 알아보기

질문:

2017년 11월 10일

댓글:

2019년 6월 6일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by