mkdir: cannot create directHandling exit signal (code: 1) Handling exit signal (code: 1) : File exists
Steps :
1. docker run -t --rm -p 8080:8080 netflixoss/genie-app
2. Create applications, commands and clusters. Taken code from the init_demo
3. submit job:
python ../examples/run_hadoop_job.py test
The code is same as the one in the demo docker image.
The only difference is the locations of all the files are not S3 rather inside the docker fs.
I have copied the files from local to docker using docker cp .... <container_id>:/apps/genie_app
All the application, commands and cluster files are copied using docker cp.
Any help will appreciate.
mkdir: /Users/att.indranilbHandling exit signal (code: 1) Handling exit signal (code: 1) c/hadoop: File exists
The client logs in DEBUG:
DEBUG:com.netflix.genie.jobs.adapter.genie_3:payload to genie 3:
DEBUG:com.netflix.genie.jobs.adapter.genie_3:{
"clusterCriterias": [
{
"tags": [
"sched:test",
"type:yarn"
]
},
{
"tags": [
"type:genie"
]
}
],
"commandArgs": "--class org.apache.spark.examples.SparkPi ${SPARK_HOME}/lib/spark-examples*.jar 10",
"commandCriteria": [
"type:spark-submit"
],
"disableLogArchival": false,
"id": "7f49554c-0274-11e9-976b-000c6c077b63",
"name": "Genie Demo Spark Submit Job",
"user": "att.indranilb",
"version": "3.0.0"
}
DEBUG:com.netflix.pygenie.utils:"POST http://localhost:8080/api/v3/jobs"
DEBUG:com.netflix.pygenie.utils:headers: {'user-agent': '1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.ip6.arpa/nflx-genie-client/3.6.6'}
DEBUG:urllib3.connectionpool:Starting new HTTP connection (1): localhost
DEBUG:urllib3.connectionpool:http://localhost:8080 "POST /api/v3/jobs HTTP/1.1" 202 0
DEBUG:com.netflix.pygenie.utils:"GET http://localhost:8080/api/v3/jobs/7f49554c-0274-11e9-976b-000c6c077b63"
DEBUG:com.netflix.pygenie.utils:headers: {'user-agent': '1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.ip6.arpa/nflx-genie-client/3.6.6'}
DEBUG:urllib3.connectionpool:Starting new HTTP connection (1): localhost
DEBUG:urllib3.connectionpool:http://localhost:8080 "GET /api/v3/jobs/7f49554c-0274-11e9-976b-000c6c077b63 HTTP/1.1" 200 None
DEBUG:com.netflix.pygenie.utils:"GET http://localhost:8080/api/v3/jobs/7f49554c-0274-11e9-976b-000c6c077b63/status"
DEBUG:com.netflix.pygenie.utils:headers: {'user-agent': '1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.ip6.arpa/nflx-genie-client/3.6.6'}
DEBUG:urllib3.connectionpool:Starting new HTTP connection (1): localhost
DEBUG:urllib3.connectionpool:http://localhost:8080 "GET /api/v3/jobs/7f49554c-0274-11e9-976b-000c6c077b63/status HTTP/1.1" 200 None
Job 7f49554c-0274-11e9-976b-000c6c077b63 is INIT
http://localhost:8080/jobs?id=7f49554c-0274-11e9-976b-000c6c077b63&rowId=7f49554c-0274-11e9-976b-000c6c077b63
DEBUG:com.netflix.pygenie.utils:"GET http://localhost:8080/api/v3/jobs/7f49554c-0274-11e9-976b-000c6c077b63/status"
DEBUG:com.netflix.pygenie.utils:headers: {'user-agent': '1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.ip6.arpa/nflx-genie-client/3.6.6'}
DEBUG:urllib3.connectionpool:Starting new HTTP connection (1): localhost
DEBUG:urllib3.connectionpool:http://localhost:8080 "GET /api/v3/jobs/7f49554c-0274-11e9-976b-000c6c077b63/status HTTP/1.1" 200 None
.DEBUG:com.netflix.pygenie.utils:"GET http://localhost:8080/api/v3/jobs/7f49554c-0274-11e9-976b-000c6c077b63/status"
DEBUG:com.netflix.pygenie.utils:headers: {'user-agent': '1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.ip6.arpa/nflx-genie-client/3.6.6'}
DEBUG:urllib3.connectionpool:Starting new HTTP connection (1): localhost
DEBUG:urllib3.connectionpool:http://localhost:8080 "GET /api/v3/jobs/7f49554c-0274-11e9-976b-000c6c077b63/status HTTP/1.1" 200 None
DEBUG:com.netflix.pygenie.utils:"GET http://localhost:8080/api/v3/jobs/7f49554c-0274-11e9-976b-000c6c077b63/status"
DEBUG:com.netflix.pygenie.utils:headers: {'user-agent': '1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.ip6.arpa/nflx-genie-client/3.6.6'}
DEBUG:urllib3.connectionpool:Starting new HTTP connection (1): localhost
DEBUG:urllib3.connectionpool:http://localhost:8080 "GET /api/v3/jobs/7f49554c-0274-11e9-976b-000c6c077b63/status HTTP/1.1" 200 None
DEBUG:com.netflix.pygenie.utils:"GET http://localhost:8080/api/v3/jobs/7f49554c-0274-11e9-976b-000c6c077b63/status"
DEBUG:com.netflix.pygenie.utils:headers: {'user-agent': '1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.ip6.arpa/nflx-genie-client/3.6.6'}
DEBUG:urllib3.connectionpool:Starting new HTTP connection (1): localhost
DEBUG:urllib3.connectionpool:http://localhost:8080 "GET /api/v3/jobs/7f49554c-0274-11e9-976b-000c6c077b63/status HTTP/1.1" 200 None
DEBUG:com.netflix.pygenie.utils:"GET http://localhost:8080/api/v3/jobs/7f49554c-0274-11e9-976b-000c6c077b63"
DEBUG:com.netflix.pygenie.utils:headers: {'user-agent': '1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.ip6.arpa/nflx-genie-client/3.6.6'}
DEBUG:urllib3.connectionpool:Starting new HTTP connection (1): localhost
DEBUG:urllib3.connectionpool:http://localhost:8080 "GET /api/v3/jobs/7f49554c-0274-11e9-976b-000c6c077b63 HTTP/1.1" 200 None
Job 7f49554c-0274-11e9-976b-000c6c077b63 finished with status FAILED
As mentioned i have used the same code as that in the demo docker cluster. Only changed the spark version to 2.4.0 and hadoop to 3.0.2
I have added the code as Archive.setup
1. Start the genie-app
2. run the setup.py under src/
3. then run the spark job submit or hadoop job under src/examples