You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by "Marton Elek (Jira)" <ji...@apache.org> on 2020/04/30 09:29:00 UTC
[jira] [Resolved] (HDDS-3482) Impl getUriDefaultPort to
BasicOzFsOzFs, return -1 forever to pass the checkPath
[ https://issues.apache.org/jira/browse/HDDS-3482?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Marton Elek resolved HDDS-3482.
-------------------------------
Fix Version/s: 0.6.0
Resolution: Fixed
> Impl getUriDefaultPort to BasicOzFsOzFs, return -1 forever to pass the checkPath
> --------------------------------------------------------------------------------
>
> Key: HDDS-3482
> URL: https://issues.apache.org/jira/browse/HDDS-3482
> Project: Hadoop Distributed Data Store
> Issue Type: Bug
> Components: Ozone Filesystem
> Affects Versions: 0.6.0
> Environment: hadoop-2.7.2 as yarn client
> hadoop-2.7.2 as yarn service (RM,NM)
> ozone-0.6.0-SNAPSHOT
> Reporter: maobaolong
> Assignee: maobaolong
> Priority: Major
> Labels: pull-request-available
> Fix For: 0.6.0
>
> Attachments: screenshot-1.png
>
>
> I test if yarn can use o3fs as its shared filesystem.
> core-site.xml
> {code:xml}
> <configuration>
> <property>
> <name>fs.defaultFS</name>
> <value>o3fs://mybucket.myvol/</value>
> </property>
> <property>
> <name>fs.o3fs.impl</name>
> <value>org.apache.hadoop.fs.ozone.BasicOzoneFileSystem</value>
> </property>
> <property>
> <name>fs.AbstractFileSystem.o3fs.impl</name>
> <value>org.apache.hadoop.fs.ozone.BasicOzFs</value>
> </property>
> </configuration>
> {code}
> execute the following command
> {code:bash}
> bin/yarn jar share/hadoop/mapreduce/hadoop-mapreduce-examples-2.7.2.jar teragen 1000 /input13
> {code}
> The following is error log
> 2020-04-23 15:15:04,544 [main] INFO mapreduce.JobSubmitter: Cleaning up the staging area /tmp/hadoop-yarn/staging/root/.staging/job_1587619434776_0007
> org.apache.hadoop.fs.InvalidPathException: Invalid path name Wrong FS: o3fs://mybucket.myvol/tmp/hadoop-yarn/staging/root/.staging/job_1587619434776_0007, expected: o3fs://mybucket.myvol/
> at org.apache.hadoop.fs.AbstractFileSystem.checkPath(AbstractFileSystem.java:390)
> at org.apache.hadoop.fs.AbstractFileSystem.resolvePath(AbstractFileSystem.java:466)
> at org.apache.hadoop.mapred.YARNRunner.createApplicationSubmissionContext(YARNRunner.java:348)
> at org.apache.hadoop.mapred.YARNRunner.submitJob(YARNRunner.java:285)
> at org.apache.hadoop.mapreduce.JobSubmitter.submitJobInternal(JobSubmitter.java:240)
> at org.apache.hadoop.mapreduce.Job$10.run(Job.java:1290)
> at org.apache.hadoop.mapreduce.Job$10.run(Job.java:1287)
> at java.security.AccessController.doPrivileged(Native Method)
> at javax.security.auth.Subject.doAs(Subject.java:422)
> at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1657)
> at org.apache.hadoop.mapreduce.Job.submit(Job.java:1287)
> at org.apache.hadoop.mapreduce.Job.waitForCompletion(Job.java:1308)
> at org.apache.hadoop.examples.terasort.TeraGen.run(TeraGen.java:301)
> at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:70)
> at org.apache.hadoop.examples.terasort.TeraGen.main(TeraGen.java:305)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:498)
> at org.apache.hadoop.util.ProgramDriver$ProgramDescription.invoke(ProgramDriver.java:71)
> at org.apache.hadoop.util.ProgramDriver.run(ProgramDriver.java:144)
> at org.apache.hadoop.examples.ExampleDriver.main(ExampleDriver.java:74)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:498)
> at org.apache.hadoop.util.RunJar.run(RunJar.java:221)
> at org.apache.hadoop.util.RunJar.main(RunJar.java:136)
> The following code logic don't make sense, but i think we can impl the method `getDefaultPort` and let it return -1 forever to work around. Maybe there are some better approach.
> !screenshot-1.png!
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: ozone-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: ozone-issues-help@hadoop.apache.org