Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Java Jar not running #31

Open
anshumanvarshney opened this issue May 11, 2020 · 0 comments
Open

Java Jar not running #31

anshumanvarshney opened this issue May 11, 2020 · 0 comments

Comments

@anshumanvarshney
Copy link

[2020-05-11 19:39:34,743] {{bash_operator.py:97}} INFO - Running command: java -cp /usr/local/airflow/dags/trainingMaven-1.0-SNAPSHOT.jar practice.Test
[2020-05-11 19:39:34,781] {{bash_operator.py:106}} INFO - Output:
[2020-05-11 19:39:34,794] {{bash_operator.py:110}} INFO - /tmp/airflowtmpypbdvug4/usgs_fetchor00rg02: line 1: java: command not found
[2020-05-11 19:39:34,795] {{bash_operator.py:114}} INFO - Command exited with return code 127
[2020-05-11 19:39:34,867] {{models.py:1760}} ERROR - Bash command failed
Traceback (most recent call last):
File "/usr/local/lib/python3.6/site-packages/airflow/models.py", line 1659, in _run_raw_task
result = task_copy.execute(context=context)
File "/usr/local/lib/python3.6/site-packages/airflow/operators/bash_operator.py", line 118, in execute
raise AirflowException("Bash command failed")
airflow.exceptions.AirflowException: Bash command failed
[2020-05-11 19:39:34,880] {{models.py:1791}} INFO - Marking task as FAILED.
[2020-05-11 19:39:34,978] {{base_task_runner.py:101}} INFO - Job 8: Subtask usgs_fetch /usr/local/lib/python3.6/site-packages/airflow/utils/helpers.py:346: DeprecationWarning: Importing 'BashOperator' directly from 'airflow.operators' has been deprecated. Please import from 'airflow.operators.[operator_module]' instead. Support for direct imports will be dropped entirely in Airflow 2.0.
[2020-05-11 19:39:34,978] {{base_task_runner.py:101}} INFO - Job 8: Subtask usgs_fetch DeprecationWarning)
[2020-05-11 19:39:34,985] {{base_task_runner.py:101}} INFO - Job 8: Subtask usgs_fetch Traceback (most recent call last):
[2020-05-11 19:39:34,985] {{base_task_runner.py:101}} INFO - Job 8: Subtask usgs_fetch File "/usr/local/bin/airflow", line 32, in
[2020-05-11 19:39:34,985] {{base_task_runner.py:101}} INFO - Job 8: Subtask usgs_fetch args.func(args)
[2020-05-11 19:39:34,985] {{base_task_runner.py:101}} INFO - Job 8: Subtask usgs_fetch File "/usr/local/lib/python3.6/site-packages/airflow/utils/cli.py", line 74, in wrapper
[2020-05-11 19:39:34,986] {{base_task_runner.py:101}} INFO - Job 8: Subtask usgs_fetch return f(*args, **kwargs)
[2020-05-11 19:39:34,986] {{base_task_runner.py:101}} INFO - Job 8: Subtask usgs_fetch File "/usr/local/lib/python3.6/site-packages/airflow/bin/cli.py", line 490, in run
[2020-05-11 19:39:34,986] {{base_task_runner.py:101}} INFO - Job 8: Subtask usgs_fetch _run(args, dag, ti)
[2020-05-11 19:39:34,986] {{base_task_runner.py:101}} INFO - Job 8: Subtask usgs_fetch File "/usr/local/lib/python3.6/site-packages/airflow/bin/cli.py", line 406, in _run
[2020-05-11 19:39:34,986] {{base_task_runner.py:101}} INFO - Job 8: Subtask usgs_fetch pool=args.pool,
[2020-05-11 19:39:34,986] {{base_task_runner.py:101}} INFO - Job 8: Subtask usgs_fetch File "/usr/local/lib/python3.6/site-packages/airflow/utils/db.py", line 74, in wrapper
[2020-05-11 19:39:34,986] {{base_task_runner.py:101}} INFO - Job 8: Subtask usgs_fetch return func(*args, **kwargs)
[2020-05-11 19:39:34,986] {{base_task_runner.py:101}} INFO - Job 8: Subtask usgs_fetch File "/usr/local/lib/python3.6/site-packages/airflow/models.py", line 1659, in _run_raw_task
[2020-05-11 19:39:34,986] {{base_task_runner.py:101}} INFO - Job 8: Subtask usgs_fetch result = task_copy.execute(context=context)
[2020-05-11 19:39:34,986] {{base_task_runner.py:101}} INFO - Job 8: Subtask usgs_fetch File "/usr/local/lib/python3.6/site-packages/airflow/operators/bash_operator.py", line 118, in execute
[2020-05-11 19:39:34,986] {{base_task_runner.py:101}} INFO - Job 8: Subtask usgs_fetch raise AirflowException("Bash command failed")
[2020-05-11 19:39:34,986] {{base_task_runner.py:101}} INFO - Job 8: Subtask usgs_fetch airflow.exceptions.AirflowException: Bash command failed
[2020-05-11 19:39:35,431] {{logging_mixin.py:95}} INFO - [2020-05-11 19:39:35,430] {{jobs.py:2695}} WARNING - State of this instance has been externally set to failed. Taking the poison pill.
[2020-05-11 19:39:35,462] {{helpers.py:240}} INFO - Sending Signals.SIGTERM to GPID 237
[2020-05-11 19:39:35,535] {{helpers.py:230}} INFO - Process psutil.Process(pid=237 (terminated)) (237) terminated with exit code 15

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant