Archives of Support Questions (Read Only)

This is an archived board for historical reference. Information and links may no longer be available or relevant
Announcements
This board is archived and read-only for historical reference. To ask a new question, please post a new topic on the appropriate active board.

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