코드에 정의 된 UDF가 없으면 HiveContext와 Saxon을 사용하는 Spark 작업이 정상적으로 작동합니다. UDF 구현의 경우 - HiveContext 초기화가 오류와 함께 실패했습니다. 나는 중앙 받는다는 저장소에 아직 무료 버전을 출시되지 색슨 9.5.1.5에서 해결 색슨 \ java8 호환성에가, 거기에 들었HiveUDF + saxon 9.1.0.8 + Java8 = XPathFactory를 만들지 못했습니다.
Caused by: java.lang.RuntimeException: XPathFactory#newInstance() failed to create an XPathFactory for the default object model: http://java.sun.com/jaxp/xpath/dom with the XPathFactoryConfigurationException: javax.xml.xpath.XPathFactoryConfigurationException: java.util.ServiceConfigurationError: javax.xml.xpath.XPathFactory: jar:file:/JBOD_D19/hadoop/cdh/yarn/nm/usercache/u23120d1/appcache/application_1477998759081_5017/container_e45_1477998759081_5017_01_000001/saxon-xpath-9.1.0.8.jar!/META-INF/services/javax.xml.xpath.XPathFactory:2: Illegal configuration-file syntax at javax.xml.xpath.XPathFactory.newInstance(XPathFactory.java:102) at org.apache.hadoop.hive.ql.udf.xml.UDFXPathUtil.(UDFXPathUtil.java:41) at org.apache.hadoop.hive.ql.udf.xml.GenericUDFXPath.(GenericUDFXPath.java:53)