Hello,
On transformation screen we have 'An unexpected error occurred An error occurred while executing the transformation'. According to browser console it appears when proxy/v1/spark/shell/transform requested, error is 'Failed to load resource: the server responded with a status of 500 (Internal Server Error)' without any details.
Trying to investigate problem, we have stucked with logging problems. Logs contain nothing about problem, but there are problems with logging itself.
In kylo-spark-shell.err we get:
15:22:48,381 SpringApplication.handleRunFailure: Application startup failed
org.springframework.context.ApplicationContextException: Unable to start embedded container; nested exception is org.springframework.boot.context.embedded.EmbeddedServletContainerException: Unable to start embedded Tomcat
...
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.boot.autoconfigure.jersey.JerseyAutoConfiguration': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private org.glassfish.jersey.server.ResourceConfig org.springframework.boot.autoconfigure.jersey.JerseyAutoConfiguration.config; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'jerseyConfig' defined in com.thinkbiganalytics.spark.SparkShellApp: Unsatisfied dependency expressed through constructor argument with index 0 of type [com.thinkbiganalytics.spark.service.TransformService]: Error creating bean with name 'transformService' defined in com.thinkbiganalytics.spark.SparkShellApp: Unsatisfied dependency expressed through constructor argument with index 1 of type [com.thinkbiganalytics.spark.repl.SparkScriptEngine]: Error creating bean with name 'sparkScriptEngine' defined in URL [jar:file:/opt/kylo/kylo-services/lib/app/kylo-spark-shell-client-v2-0.8.2.1-SNAPSHOT.jar!/com/thinkbiganalytics/spark/repl/SparkScriptEngine.class]: Instantiation of bean failed; nested exception is java.lang.LinkageError: loader constraint violation: when resolving method "org.slf4j.impl.StaticLoggerBinder.getLoggerFactory()Lorg/slf4j/ILoggerFactory;" the class loader (instance of org/apache/spark/util/ChildFirstURLClassLoader) of the current class, org/slf4j/LoggerFactory, and the class loader (instance of sun/misc/Launcher$AppClassLoader) for the method's defining class, org/slf4j/impl/StaticLoggerBinder, have different Class objects for the type org/slf4j/ILoggerFactory used in the signature; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sparkScriptEngine' defined in URL [jar:file:/opt/kylo/kylo-services/lib/app/kylo-spark-shell-client-v2-0.8.2.1-SNAPSHOT.jar!/com/thinkbiganalytics/spark/repl/SparkScriptEngine.class]: Instantiation of bean failed; nested exception is java.lang.LinkageError: loader constraint violation: when resolving method "org.slf4j.impl.StaticLoggerBinder.getLoggerFactory()Lorg/slf4j/ILoggerFactory;" the class loader (instance of org/apache/spark/util/ChildFirstURLClassLoader) of the current class, org/slf4j/LoggerFactory, and the class loader (instance of sun/misc/Launcher$AppClassLoader) for the method's defining class, org/slf4j/impl/StaticLoggerBinder, have different Class objects for the type org/slf4j/ILoggerFactory used in the signature; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'transformService' defined in com.thinkbiganalytics.spark.SparkShellApp: Unsatisfied dependency expressed through constructor argument with index 1 of type [com.thinkbiganalytics.spark.repl.SparkScriptEngine]: Error creating bean with name 'sparkScriptEngine' defined in URL [jar:file:/opt/kylo/kylo-services/lib/app/kylo-spark-shell-client-v2-0.8.2.1-SNAPSHOT.jar!/com/thinkbiganalytics/spark/repl/SparkScriptEngine.class]: Instantiation of bean failed; nested exception is java.lang.LinkageError: loader constraint violation: when resolving method "org.slf4j.impl.StaticLoggerBinder.getLoggerFactory()Lorg/slf4j/ILoggerFactory;" the class loader (instance of org/apache/spark/util/ChildFirstURLClassLoader) of the current class, org/slf4j/LoggerFactory, and the class loader (instance of sun/misc/Launcher$AppClassLoader) for the method's defining class, org/slf4j/impl/StaticLoggerBinder, have different Class objects for the type org/slf4j/ILoggerFactory used in the signature; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sparkScriptEngine' defined in URL [jar:file:/opt/kylo/kylo-services/lib/app/kylo-spark-shell-client-v2-0.8.2.1-SNAPSHOT.jar!/com/thinkbiganalytics/spark/repl/SparkScriptEngine.class]: Instantiation of bean failed; nested exception is java.lang.LinkageError: loader constraint violation: when resolving method "org.slf4j.impl.StaticLoggerBinder.getLoggerFactory()Lorg/slf4j/ILoggerFactory;" the class loader (instance of org/apache/spark/util/ChildFirstURLClassLoader) of the current class, org/slf4j/LoggerFactory, and the class loader (instance of sun/misc/Launcher$AppClassLoader) for the method's defining class, org/slf4j/impl/StaticLoggerBinder, have different Class objects for the type org/slf4j/ILoggerFactory used in the signature
It seems that there are some version conflicts with slf4j. At least Kylo itself and Spark uses different versions of slf4j. I'll be grateful if someone sheds light on how Kylo loads dependencies for all involved components, and how to handle our problem.
Also, it's interesting that error disappears after removing /opt/kylo/kylo-services/conf from from --driver-class-path from parameter inside run-kylo-spark-shell.sh. But in that case we also havn't any logs related to our initial problem.
We are running Kylo 0.8.2.1 with HDP 2.6.