[ 
https://issues.apache.org/jira/browse/SPARK-3062?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14098776#comment-14098776
 ] 

Apache Spark commented on SPARK-3062:
-------------------------------------

User 'sarutak' has created a pull request for this issue:
https://github.com/apache/spark/pull/1970

> ShutdownHookManager is only available in Hadoop 2.x
> ---------------------------------------------------
>
>                 Key: SPARK-3062
>                 URL: https://issues.apache.org/jira/browse/SPARK-3062
>             Project: Spark
>          Issue Type: Bug
>          Components: SQL
>    Affects Versions: 1.0.2
>            Reporter: Cheng Lian
>            Priority: Blocker
>
> PR [#1891|https://github.com/apache/spark/pull/1891] leverages 
> {{ShutdownHookManager}} to avoid {{IOException}} when {{EventLogging}} is 
> enabled. But unfortunately {{ShutdownHookManager}} is only available in 
> Hadoop 2.x. Compilation fails when building Spark with Hadoop 1.
> {code}
> $ ./sbt/sbt -Phive-thriftserver
> ...
> [ERROR] 
> /home/spark/software/source/compile/spark/sql/hive-thriftserver/src/main/scala/org/apache/spark/sql/hive/thriftserver/SparkSQLCLIDriver.scala:30:
>  object ShutdownHookManager is not a member of package org.apache.hadoop.util
> [ERROR] import org.apache.hadoop.util.ShutdownHookManager
> [ERROR]        ^
> [ERROR] 
> /home/spark/software/source/compile/spark/sql/hive-thriftserver/src/main/scala/org/apache/spark/sql/hive/thriftserver/SparkSQLCLIDriver.scala:125:
>  not found: value ShutdownHookManager
> [ERROR]     ShutdownHookManager.get.addShutdownHook(
> [ERROR]     ^‍
> [WARNING] one warning found
> [ERROR] two errors found‍
> {code}



--
This message was sent by Atlassian JIRA
(v6.2#6252)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to