Github user Sherry302 commented on the issue:

    https://github.com/apache/spark/pull/14659
  
    Hi, @tgravescs @srowen 
    Give an intermediate update, If using `Class.forName  `instead of 
Utils.classForName`, Maven build and all of the tests will be passed. 
    
    ```
      def setCurrentContext(): Boolean = {
        var succeed = false
        try {
          // scalastyle:off classforname
          val callerContext = 
Class.forName("org.apache.hadoop.ipc.CallerContext")
          val Builder = 
Class.forName("org.apache.hadoop.ipc.CallerContext$Builder")
          // scalastyle:on classforname
          val builderInst = 
Builder.getConstructor(classOf[String]).newInstance(context)
          val hdfsContext = Builder.getMethod("build").invoke(builderInst)
          callerContext.getMethod("setCurrent", callerContext).invoke(null, 
hdfsContext)
          succeed = true
        } catch {
          case NonFatal(e) => logInfo("Fail to set Spark caller context", e)
        }
        succeed
      }
    ```


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

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

Reply via email to