wForget opened a new issue #1649:
URL: https://github.com/apache/incubator-kyuubi/issues/1649


   ### Code of Conduct
   
   - [X] I agree to follow this project's [Code of 
Conduct](https://www.apache.org/foundation/policies/conduct)
   
   
   ### Search before asking
   
   - [X] I have searched in the 
[issues](https://github.com/apache/incubator-kyuubi/issues?q=is%3Aissue) and 
found no similar issues.
   
   
   ### Describe the bug
   
   When HADOOP_HOME is not set, the stop-application.sh script cannot kill the 
yarn task even if the yarn command exists.
   
   ### Affects Version(s)
   
   master
   
   ### Kyuubi Server Log Output
   
   ```logtalk
   Error: HADOOP_HOME IS NOT SET! CANNOT PROCEED.
           at 
org.apache.kyuubi.KyuubiSQLException$.apply(KyuubiSQLException.scala:69)
           at 
org.apache.kyuubi.engine.ProcBuilder.getError(ProcBuilder.scala:198)
           at 
org.apache.kyuubi.engine.ProcBuilder.getError$(ProcBuilder.scala:192)
           at 
org.apache.kyuubi.engine.spark.SparkProcessBuilder.getError(SparkProcessBuilder.scala:36)
           at 
org.apache.kyuubi.engine.EngineRef.$anonfun$create$1(EngineRef.scala:211)
           ... 15 more
   ```
   
   
   ### Kyuubi Engine Log Output
   
   _No response_
   
   ### Kyuubi Server Configurations
   
   _No response_
   
   ### Kyuubi Engine Configurations
   
   _No response_
   
   ### Additional context
   
   Need to modify the stop-application.sh script, first determine whether the 
yarn command exists, not just get it with HADOOP_HOME.
   
   ### Are you willing to submit PR?
   
   - [X] Yes I am willing to submit a PR!


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to