hadoop-yarn-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Billie Rinaldi (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (YARN-7706) httpd yarn service example fails with "java.lang.IllegalArgumentException: Src_file does not exist for config file: httpd-proxy.conf"
Date Tue, 09 Jan 2018 17:52:00 GMT

     [ https://issues.apache.org/jira/browse/YARN-7706?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Billie Rinaldi resolved YARN-7706.
----------------------------------
    Resolution: Invalid

The httpd-proxy.conf file must be copied to HDFS before launching the app, as per the instructions:
https://github.com/apache/hadoop/blob/trunk/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-site/src/site/markdown/yarn-service/Examples.md

> httpd yarn service example fails with "java.lang.IllegalArgumentException: Src_file does
not exist for config file: httpd-proxy.conf"
> -------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: YARN-7706
>                 URL: https://issues.apache.org/jira/browse/YARN-7706
>             Project: Hadoop YARN
>          Issue Type: Bug
>            Reporter: Yesha Vora
>
> steps:
> * Enable yarn containerization in cluster
> * Launch httpd example.
> httpd.json and httpd-proxy.conf file are present at <yarn client home>/yarn-service-examples/httpd
> {code}
> [hrt_qa@xxx httpd]$ ls -la
> total 8
> drwxr-xr-x. 2 root root   46 Jan  5 02:52 .
> drwxr-xr-x. 5 root root   51 Jan  5 02:52 ..
> -rw-r--r--. 1 root root 1337 Jan  1 04:21 httpd.json
> -rw-r--r--. 1 root root 1065 Jan  1 04:21 httpd-proxy.conf{code}
> {code}
> [hrt_qa@xxx yarn-service-examples]$ yarn app -launch httpd-hrtqa httpd/httpd.json
> WARNING: YARN_LOG_DIR has been replaced by HADOOP_LOG_DIR. Using value of YARN_LOG_DIR.
> WARNING: YARN_LOGFILE has been replaced by HADOOP_LOGFILE. Using value of YARN_LOGFILE.
> WARNING: YARN_PID_DIR has been replaced by HADOOP_PID_DIR. Using value of YARN_PID_DIR.
> WARNING: YARN_OPTS has been replaced by HADOOP_OPTS. Using value of YARN_OPTS.
> 18/01/05 20:39:22 WARN util.NativeCodeLoader: Unable to load native-hadoop library for
your platform... using builtin-java classes where applicable
> 18/01/05 20:39:23 WARN shortcircuit.DomainSocketFactory: The short-circuit local reads
feature cannot be used because libhadoop cannot be loaded.
> 18/01/05 20:39:23 INFO client.ServiceClient: Loading service definition from local FS:
/xxx/yarn-service-examples/httpd/httpd.json
> Exception in thread "main" java.lang.IllegalArgumentException: Src_file does not exist
for config file: httpd-proxy.conf
> 	at org.apache.hadoop.yarn.service.provider.AbstractClientProvider.validateConfigFiles(AbstractClientProvider.java:105)
> 	at org.apache.hadoop.yarn.service.utils.ServiceApiUtil.validateComponent(ServiceApiUtil.java:224)
> 	at org.apache.hadoop.yarn.service.utils.ServiceApiUtil.validateAndResolveService(ServiceApiUtil.java:189)
> 	at org.apache.hadoop.yarn.service.client.ServiceClient.actionCreate(ServiceClient.java:213)
> 	at org.apache.hadoop.yarn.service.client.ServiceClient.actionLaunch(ServiceClient.java:204)
> 	at org.apache.hadoop.yarn.client.cli.ApplicationCLI.run(ApplicationCLI.java:447)
> 	at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:76)
> 	at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:90)
> 	at org.apache.hadoop.yarn.client.cli.ApplicationCLI.main(ApplicationCLI.java:111){code}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

---------------------------------------------------------------------
To unsubscribe, e-mail: yarn-dev-unsubscribe@hadoop.apache.org
For additional commands, e-mail: yarn-dev-help@hadoop.apache.org


Mime
View raw message