Hi Chuang,

On 14-06-2017 11:12, Wei-Chiu Chuang wrote:
> Hi
> As far as I know Hadoop does not compile with JDK9. There’s development work 
> in trunk, please take a look at HADOOP-11123 
> <https://issues.apache.org/jira/browse/HADOOP-11123> or search jira for 
> “hadoop jdk9”

Thanks for the information.

I'm getting an error related to the new module system on 9 when trying to start 
Ambari server:

# ambari-server start
Using python  /usr/bin/python
Starting ambari-server
Ambari Server running with administrator privileges.
Organizing resource files at /var/lib/ambari-server/resources...
Ambari database consistency check started...
Server PID at: /var/run/ambari-server/ambari-server.pid
Server out at: /var/log/ambari-server/ambari-server.out
Server log at: /var/log/ambari-server/ambari-server.log
Waiting for server start.........Unable to determine server PID. Retrying...
......Unable to determine server PID. Retrying...
......Unable to determine server PID. Retrying...
ERROR: Exiting with exit code -1.
REASON: Ambari Server java process died with exitcode 1. Check 
/var/log/ambari-server/ambari-server.out for more information.

logs shows:

Caused by: java.lang.reflect.InaccessibleObjectException: Unable to make 
protected final java.lang.Class
java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int,java.security.ProtectionDomain)
 throws java.lang.ClassFormatError accessible: module java.base does not "opens 
java.lang" to unnamed
module @381cad29
       at 
java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:337)
       at 
java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:281)
       at 
java.base/java.lang.reflect.Method.checkCanSetAccessible(Method.java:197)
       at java.base/java.lang.reflect.Method.setAccessible(Method.java:191)
       at 
com.google.inject.internal.cglib.core.$ReflectUtils$2.run(ReflectUtils.java:56)
       at java.base/java.security.AccessController.doPrivileged(Native Method)
       at 
com.google.inject.internal.cglib.core.$ReflectUtils.<clinit>(ReflectUtils.java:46)

But I guess it can be an Ambari issue since running a simple standalone test on 
Hadoop with OpenJDK 9 like in [1] succeeds:

$ bin/hadoop jar share/hadoop/mapreduce/hadoop-mapreduce-examples-2.7.3.jar 
grep input output '[a-z.]+'
$ cat ./output/*
1       dfsadmin

I think it's better to ask on Ambari's ML.

Thanks a lot.

Regards,
Gustavo

[1] 
https://hadoop.apache.org/docs/stable/hadoop-project-dist/hadoop-common/SingleCluster.html

> Wei-Chiu Chuang
> 
>> On Jun 14, 2017, at 7:07 AM, Gustavo Romero <grom...@linux.vnet.ibm.com> 
>> wrote:
>>
>> Hi,
>>
>> Does Hadoop 2.7.3 or any on other recent version (maybe upstream) support
>> OpenJDK 9 (to be GA [1])?
>>
>> If none supports it, is it planned and a ticket is open to track that 
>> progress?
>>
>> Thank you.
>>
>> Best regards,
>> Gustavo
>>
>> [1] http://openjdk.java.net/projects/jdk9/
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: common-dev-unsubscr...@hadoop.apache.org
>> For additional commands, e-mail: common-dev-h...@hadoop.apache.org
>>
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: common-dev-unsubscr...@hadoop.apache.org
For additional commands, e-mail: common-dev-h...@hadoop.apache.org

Reply via email to