java.net.URISyntaxException:索引0处的预期方案名称:

时间:2018-07-06 04:58:57

标签: java yarn hadoop2 uber-api

我正在尝试在服务器计算机上设置Uber athenaX。我想我已经完成了80%的工作。但是对于运动,我正在努力解决这个错误。

WARN org.apache.hadoop.yarn.server.nodemanager.containermanager.container.ContainerImpl: Failed to parse resource-request
java.net.URISyntaxException: Expected scheme name at index 0: :///home/cyclone/randika/athenax/log4j.properties
    at java.net.URI$Parser.fail(URI.java:2848)
    at java.net.URI$Parser.failExpecting(URI.java:2854)
    at java.net.URI$Parser.parse(URI.java:3046)
    at java.net.URI.<init>(URI.java:746)
    at org.apache.hadoop.yarn.util.ConverterUtils.getPathFromYarnURL(ConverterUtils.java:82)
    at org.apache.hadoop.yarn.server.nodemanager.containermanager.localizer.LocalResourceRequest.<init>(LocalResourceRequest.java:46)
    at org.apache.hadoop.yarn.server.nodemanager.containermanager.container.ContainerImpl$RequestResourcesTransition.transition(ContainerImpl.java:614)
    at org.apache.hadoop.yarn.server.nodemanager.containermanager.container.ContainerImpl$RequestResourcesTransition.transition(ContainerImpl.java:565)
    at org.apache.hadoop.yarn.state.StateMachineFactory$MultipleInternalArc.doTransition(StateMachineFactory.java:385)
    at org.apache.hadoop.yarn.state.StateMachineFactory.doTransition(StateMachineFactory.java:302)
    at org.apache.hadoop.yarn.state.StateMachineFactory.access$300(StateMachineFactory.java:46)
    at org.apache.hadoop.yarn.state.StateMachineFactory$InternalStateMachine.doTransition(StateMachineFactory.java:448)
    at org.apache.hadoop.yarn.server.nodemanager.containermanager.container.ContainerImpl.handle(ContainerImpl.java:1129)
    at org.apache.hadoop.yarn.server.nodemanager.containermanager.container.ContainerImpl.handle(ContainerImpl.java:84)
    at org.apache.hadoop.yarn.server.nodemanager.containermanager.ContainerManagerImpl$ContainerEventDispatcher.handle(ContainerManagerImpl.java:1068)
    at org.apache.hadoop.yarn.server.nodemanager.containermanager.ContainerManagerImpl$ContainerEventDispatcher.handle(ContainerManagerImpl.java:1061)
    at org.apache.hadoop.yarn.event.AsyncDispatcher.dispatch(AsyncDispatcher.java:184)
    at org.apache.hadoop.yarn.event.AsyncDispatcher$1.run(AsyncDispatcher.java:110)
    at java.lang.Thread.run(Thread.java:748)
2018-07-06 09:38:30,635 INFO org.apache.hadoop.yarn.server.nodemanager.containermanager.container.ContainerImpl: Container container_1530792582755_0033_01_000001 transitioned from NEW to LOCALIZATION_FAILED

我认为发生此错误是因为我的athenaX .yaml文件出了点​​问题,这是我的.yaml文件

athenax.master.uri: http://<myip>:8083
catalog.impl: com.mydashboard.athena.catalog.impl.MydashboardAthenaCatalogProvider
clusters:
  CID-62142d19-3125-4736-8a36-726c81a01fbf:
    yarn.site.location: hdfs:///home/cyclone/randika/athenax/yarn-site.xml
    athenax.home.dir: hdfs:///home/cyclone/randika/athenax
    flink.uber.jar.location: hdfs:///home/cyclone/randika/athenax/original-FlinkJob-0.1-SNAPSHOT.jar
    localize.resources:
      - /home/cyclone/randika/athenax/log4j.properties
    additional.jars:
      - /home/cyclone/randika/athenax/connectors.jar
extras:
  jobstore.leveldb.file: /home/cyclone/randika/athenax/db

我尝试了如下的 localize.resources:

  
      
  • /home/cyclone/randika/athenax/log4j.properties
  •   
- http://home/cyclone/randika/athenax/log4j.properties

- http://<myip>/home/cyclone/randika/athenax/log4j.properties

但是所有这些都不适合我。

请任何人可以帮助我吗?..

0 个答案:

没有答案