Support Questions

Find answers, ask questions, and share your expertise

Who agreed with this solution

avatar
Master Guru

It appears that the hostname configured for db access may be incorrect:

 

Caused by: java.net.UnknownHostException: ODC-HADOOP-MN
    at java.net.Inet4AddressImpl.lookupAllHostAddr(Native Method)
    at java.net.InetAddress$1.lookupAllHostAddr(InetAddress.java:901)
    at java.net.InetAddress.getAddressesFromNameService(InetAddress.java:1293)
    at java.net.InetAddress.getLocalHost(InetAddress.java:1469)
    ... 48 more

 

But then we also see:

 

Caused by: java.sql.SQLException: Schema version table SCHEMA_VERSION exists but contains no rows.
    at com.cloudera.enterprise.dbutil.DbUtil.getSchemaVersion(DbUtil.java:238)
    at com.cloudera.enterprise.dbutil.DbUtil$1SchemaVersionWork.execute(DbUtil.java:177)
    at org.hibernate.jdbc.WorkExecutor.executeWork(WorkExecutor.java:54)
    at org.hibernate.internal.SessionImpl$2.accept(SessionImpl.java:1982)
    at org.hibernate.internal.SessionImpl$2.accept(SessionImpl.java:1979)

 

That indicates that something went wrong during initial population of the database and now it is inconsistent.  I would recommend starting over and also sharing the scm_prepare_database.sh command and options you used.

View solution in original post

Who agreed with this solution