StreamSets Compatibility with Java 10

asked 2018-04-16 06:51:06 -0600

Trans gravatar image

updated 2018-04-23 01:47:01 -0600

Does StreamSets support Java 10 ? we tried running StreamSets with Java 10, ended up with the below error. Seems some of the JVM parameters like "PrintGCDateStamps" are removed in Java 10.

Error: Could not create the Java Virtual Machine. The java version is java version "10" 2018-03-20 Java(TM) SE Runtime Environment 18.3 (build 10+46) Java HotSpot(TM) 64-Bit Server VM 18.3 (build 10+46, mixed mode)


Below is the error i am getting error when starting the SDC with Java 10

WARN: could not determine Java environment version; expected 1.8, which are the supported versions Unrecognized VM option 'PrintGCDateStamps' Error: Could not create the Java Virtual Machine. Error: A fatal exception has occurred. Program will exit. Exit: 1

For workaround, I had debug the _sdc file and added below command to support Java 10

if [[ "$JAVA_VERSION" = '1.7' ]]; then echo "ERROR: Detected JDK7 that is no longer supported. Please upgrade to JDK8." exit elif [[ "$JAVA_VERSION" = '1.8' ]]; then echo "Java 1.8 detected; adding \$SDC_JAVA8_OPTS of \"${SDC_JAVA8_OPTS}\" to \$SDC_JAVA_OPTS" SDC_JAVA_OPTS="${SDC_JAVA_OPTS} ${SDC_JAVA8_OPTS}"

elif [[ "$JAVA_VERSION" = '1.10' ]]; then echo "Java 1.10 detected; adding \$SDC_JAVA10_OPTS of \"${SDC_JAVA10_OPTS}\" to \$SDC_JAVA_OPTS" SDC_JAVA_OPTS="${SDC_JAVA_OPTS} ${SDC_JAVA10_OPTS}"

else echo "WARN: could not determine Java environment version; expected 1.8, which are the supported versions" >&2 fi

then I am getting below error

2018-04-16 17:11:41,673 [user:] [pipeline:] [runner:] [thread:main] INFO Main - ----------------------------------------------------------------- 2018-04-16 17:11:41,674 [user:] [pipeline:] [runner:] [thread:main] INFO Main - Build info: 2018-04-16 17:11:41,674 [user:] [pipeline:] [runner:] [thread:main] INFO Main - Version : 3.1.2.0 2018-04-16 17:11:41,674 [user:] [pipeline:] [runner:] [thread:main] INFO Main - Date : 2018-03-20T18:19Z 2018-04-16 17:11:41,674 [user:] [pipeline:] [runner:] [thread:main] INFO Main - Built by : root 2018-04-16 17:11:41,674 [user:] [pipeline:] [runner:] [thread:main] INFO Main - Repo SHA : 2f3225224e5ce2beff355254e44ffa9e3c48863a 2018-04-16 17:11:41,674 [user:] [pipeline:] [runner:] [thread:main] INFO Main - Source MD5 : 1aa7555e88e9e601b82336af48d3f97 2018-04-16 17:11:41,674 [user:] [pipeline:] [runner:] [thread:main] INFO Main - ----------------------------------------------------------------- 2018-04-16 17:11:41,674 [user:] [pipeline:] [runner:] [thread:main] INFO Main - Runtime info: 2018-04-16 17:11:41,674 [user:] [pipeline:] [runner:] [thread:main] INFO Main - Java version : 10+46 2018-04-16 17:11:41,674 [user:] [pipeline:] [runner:] [thread:main] INFO Main - SDC ID : df73ff43-4145-11e8-9c88-91445074ca01 2018-04-16 17:11:41,674 [user:] [pipeline:] [runner:] [thread:main] INFO Main - Runtime dir : /opt/streamsets-datacollector 2018-04-16 17:11:41,674 [user:] [pipeline:] [runner:] [thread:main] INFO Main - Config dir : /etc/sdc 2018-04-16 17:11:41,674 [user:] [pipeline:] [runner:] [thread:main] INFO Main - Data dir : /var/lib/sdc 2018-04-16 17:11:41,674 [user:] [pipeline:] [runner:] [thread:main] INFO Main - Log dir : /var/log/sdc 2018-04-16 17:11:41,674 [user:] [pipeline:] [runner:] [thread:main] INFO Main - ----------------------------------------------------------------- 2018-04-16 17:11:41,674 [user:] [pipeline:] [runner:] [thread:main] WARN Main - Security Manager : DISABLED 2018-04-16 17:11:41,674 [user:] [pipeline:] [runner:] [thread:main] INFO Main - ----------------------------------------------------------------- 2018-04-16 17:11:41,674 [user:] [pipeline:] [runner:] [thread:main] INFO Main - Starting ... 2018-04-16 ... (more)

edit retag flag offensive close merge delete

Comments

As of now, I don't believe anyone has looked at running on Java 10. Is there more detail available, either in the sdc.log file or stderr or stdout?

jeff gravatar imagejeff ( 2018-04-16 15:32:09 -0600 )edit

Thanks Jeff. I had Updated error log, noticed some of the JVM arguments are deprecated in Java 10, trying to solve one after one and still wasnt able to make it work.

Trans gravatar imageTrans ( 2018-04-16 23:12:31 -0600 )edit

By any chance it will be supported in near future ?

Trans gravatar imageTrans ( 2018-04-23 01:47:19 -0600 )edit