Uploaded image for project: 'Apache Ozone'
  1. Apache Ozone
  2. HDDS-2095

Submit mr job to yarn failed, Error messegs is "Provider org.apache.hadoop.fs.ozone.OzoneClientAdapterImpl$Renewer not found"

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Duplicate
    • 0.4.1
    • 0.4.1
    • Ozone Filesystem

    Description

      below is the submit command 

      hadoop jar hadoop-mapreduce-client-jobclient-3.2.0-tests.jar  nnbench -Dfs.defaultFS=o3fs://buc.volume-test  -maps 3   -bytesToWrite 1 -numberOfFiles 1000  -blockSize 16  -operation create_write
      

      clinet fail with message 

      19/09/06 15:26:52 INFO mapreduce.JobSubmitter: Cleaning up the staging area /user/hdfs/.staging/job_1567754782562_000119/09/06 15:26:52 INFO mapreduce.JobSubmitter: Cleaning up the staging area /user/hdfs/.staging/job_1567754782562_0001java.io.IOException: org.apache.hadoop.yarn.exceptions.YarnException: Failed to submit application_1567754782562_0001 to YARN : org.apache.hadoop.security.token.TokenRenewer: Provider org.apache.hadoop.fs.ozone.OzoneClientAdapterImpl$Renewer not found at org.apache.hadoop.mapred.YARNRunner.submitJob(YARNRunner.java:345) at org.apache.hadoop.mapreduce.JobSubmitter.submitJobInternal(JobSubmitter.java:254) at org.apache.hadoop.mapreduce.Job$11.run(Job.java:1570) at org.apache.hadoop.mapreduce.Job$11.run(Job.java:1567) 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:1685) at org.apache.hadoop.mapreduce.Job.submit(Job.java:1567) at org.apache.hadoop.mapred.JobClient$1.run(JobClient.java:576) at org.apache.hadoop.mapred.JobClient$1.run(JobClient.java:571) 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:1685) at org.apache.hadoop.mapred.JobClient.submitJobInternal(JobClient.java:571) at org.apache.hadoop.mapred.JobClient.submitJob(JobClient.java:562) at org.apache.hadoop.mapred.JobClient.runJob(JobClient.java:873) at org.apache.hadoop.hdfs.NNBench.runTests(NNBench.java:487) at org.apache.hadoop.hdfs.NNBench.run(NNBench.java:604) at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:76) at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:90) at org.apache.hadoop.hdfs.NNBench.main(NNBench.java:579) 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.test.MapredTestDriver.run(MapredTestDriver.java:144) at org.apache.hadoop.test.MapredTestDriver.main(MapredTestDriver.java:152) 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:308) at org.apache.hadoop.util.RunJar.main(RunJar.java:222)Caused by: org.apache.hadoop.yarn.exceptions.YarnException: Failed to submit application_1567754782562_0001 to YARN : org.apache.hadoop.security.token.TokenRenewer: Provider org.apache.hadoop.fs.ozone.OzoneClientAdapterImpl$Renewer not found at org.apache.hadoop.yarn.client.api.impl.YarnClientImpl.submitApplication(YarnClientImpl.java:304) at org.apache.hadoop.mapred.ResourceMgrDelegate.submitApplication(ResourceMgrDelegate.java:299) at org.apache.hadoop.mapred.YARNRunner.submitJob(YARNRunner.java:330) ... 34 more
      

      the log in resourcemanager 

      2019-09-06 15:26:51,836 WARN  security.DelegationTokenRenewer (DelegationTokenRenewer.java:handleDTRenewerAppSubmitEvent(923)) - Unable to add the application to the delegation token renewer.
      java.util.ServiceConfigurationError: org.apache.hadoop.security.token.TokenRenewer: Provider org.apache.hadoop.fs.ozone.OzoneClientAdapterImpl$Renewer not found
              at java.util.ServiceLoader.fail(ServiceLoader.java:239)
              at java.util.ServiceLoader.access$300(ServiceLoader.java:185)
              at java.util.ServiceLoader$LazyIterator.nextService(ServiceLoader.java:372)
              at java.util.ServiceLoader$LazyIterator.next(ServiceLoader.java:404)
              at java.util.ServiceLoader$1.next(ServiceLoader.java:480)
              at org.apache.hadoop.security.token.Token.getRenewer(Token.java:463)
              at org.apache.hadoop.security.token.Token.isManaged(Token.java:479)
              at org.apache.hadoop.yarn.server.resourcemanager.security.DelegationTokenRenewer.handleAppSubmitEvent(DelegationTokenRenewer.java:448)
              at org.apache.hadoop.yarn.server.resourcemanager.security.DelegationTokenRenewer.access$900(DelegationTokenRenewer.java:79)
              at org.apache.hadoop.yarn.server.resourcemanager.security.DelegationTokenRenewer$DelegationTokenRenewerRunnable.handleDTRenewerAppSubmitEvent(DelegationTokenRenewer.java:919)
              at org.apache.hadoop.yarn.server.resourcemanager.security.DelegationTokenRenewer$DelegationTokenRenewerRunnable.run(DelegationTokenRenewer.java:896)
              at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
              at java.lang.Thread.run(Thread.java:745)
      
      

      Attachments

        1. HDDS-2095.001.patch
          0.6 kB
          luhuachao

        Issue Links

          Activity

            People

              Unassigned Unassigned
              Huachao luhuachao
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: