FAQ
Curious, can anyone summarize how the files in that directory are
generated, and where do the properties that they contain come from?

Search Discussions

  • Adam Smieszny at Sep 28, 2012 at 8:26 pm
    They are the config files that typically are picked up out of
    /etc/hadoop/conf, /etc/hbase/conf
    They are generated at service start time via the CM interface, and their
    contents are pulled from the configuration that is set up in the CM
    interface, per service.

    Hope this helps
    Cheers,
    Adam

    On Fri, Sep 28, 2012 at 4:22 PM, KaChingChingPow
    wrote:
    Curious, can anyone summarize how the files in that directory are
    generated, and where do the properties that they contain come from?


    --
    Adam Smieszny
    Cloudera | Systems Engineer | http://tiny.cloudera.com/about
    917.830.4156 | http://www.linkedin.com/in/adamsmieszny
  • Neha bagdia at May 7, 2013 at 10:32 am
    Hi,

    I am facing a problem setting hive metastore

    std err log gives :

    javax.jdo.JDOFatalDataStoreException: FATAL: password authentication failed for user "hive"
      at org.datanucleus.jdo.NucleusJDOHelper.getJDOExceptionForNucleusException(NucleusJDOHelper.java:298)
      at org.datanucleus.jdo.JDOPersistenceManagerFactory.freezeConfiguration(JDOPersistenceManagerFactory.java:601)
      at org.datanucleus.jdo.JDOPersistenceManagerFactory.createPersistenceManagerFactory(JDOPersistenceManagerFactory.java:286)
      at org.datanucleus.jdo.JDOPersistenceManagerFactory.getPersistenceManagerFactory(JDOPersistenceManagerFactory.java:182)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:597)
      at javax.jdo.JDOHelper$16.run(JDOHelper.java:1958)
      at java.security.AccessController.doPrivileged(Native Method)
      at javax.jdo.JDOHelper.invoke(JDOHelper.java:1953)
      at javax.jdo.JDOHelper.invokeGetPersistenceManagerFactoryOnImplementation(JDOHelper.java:1159)
      at javax.jdo.JDOHelper.getPersistenceManagerFactory(JDOHelper.java:803)
      at javax.jdo.JDOHelper.getPersistenceManagerFactory(JDOHelper.java:698)
      at org.apache.hadoop.hive.metastore.ObjectStore.getPMF(ObjectStore.java:262)
      at org.apache.hadoop.hive.metastore.ObjectStore.getPersistenceManager(ObjectStore.java:291)
      at org.apache.hadoop.hive.metastore.ObjectStore.initialize(ObjectStore.java:224)
      at org.apache.hadoop.hive.metastore.ObjectStore.setConf(ObjectStore.java:199)
      at org.apache.hadoop.util.ReflectionUtils.setConf(ReflectionUtils.java:70)
      at org.apache.hadoop.util.ReflectionUtils.newInstance(ReflectionUtils.java:130)
      at org.apache.hadoop.hive.metastore.RetryingRawStore.(RetryingRawStore.java:71)
      at org.apache.hadoop.hive.metastore.HiveMetaStore$HMSHandler.newRawStore(HiveMetaStore.java:404)
      at org.apache.hadoop.hive.metastore.HiveMetaStore$HMSHandler.getMS(HiveMetaStore.java:392)
      at org.apache.hadoop.hive.metastore.HiveMetaStore$HMSHandler.createDefaultDB(HiveMetaStore.java:430)
      at org.apache.hadoop.hive.metastore.HiveMetaStore$HMSHandler.init(HiveMetaStore.java:324)
      at org.apache.hadoop.hive.metastore.HiveMetaStore$HMSHandler.(RetryingHMSHandler.java:56)
      at org.apache.hadoop.hive.metastore.RetryingHMSHandler.getProxy(RetryingHMSHandler.java:61)
      at org.apache.hadoop.hive.metastore.HiveMetaStore.newHMSHandler(HiveMetaStore.java:4010)
      at org.apache.hadoop.hive.metastore.HiveMetaStore.startMetaStore(HiveMetaStore.java:4211)
      at org.apache.hadoop.hive.metastore.HiveMetaStore.main(HiveMetaStore.java:4147)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:597)
      at org.apache.hadoop.util.RunJar.main(RunJar.java:208)



    Now my metastore is postgresql, I am trying to change the password in
    /etc/hive/conf/hive-site.xml and restart the service
    The conf dir in /var/run/../ still picks the prev password.

    Also I tried to configure mysql as metastore, but again the same it doesnt
    pick changes in hive-site.xml to generate conf dir in /var/run/

    Which hive-site.xml do I edit to reflect changes for custom configuration
    or any change?

    Thanks,
    Neha
  • Serega Sheypak at May 7, 2013 at 10:44 am
    What version of Cloudera manager you use?

    2013/5/7 neha bagdia <neha.bagdia2@gmail.com>
    Hi,

    I am facing a problem setting hive metastore

    std err log gives :

    javax.jdo.JDOFatalDataStoreException: FATAL: password authentication failed for user "hive"
    at org.datanucleus.jdo.NucleusJDOHelper.getJDOExceptionForNucleusException(NucleusJDOHelper.java:298)
    at org.datanucleus.jdo.JDOPersistenceManagerFactory.freezeConfiguration(JDOPersistenceManagerFactory.java:601)
    at org.datanucleus.jdo.JDOPersistenceManagerFactory.createPersistenceManagerFactory(JDOPersistenceManagerFactory.java:286)
    at org.datanucleus.jdo.JDOPersistenceManagerFactory.getPersistenceManagerFactory(JDOPersistenceManagerFactory.java:182)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at javax.jdo.JDOHelper$16.run(JDOHelper.java:1958)
    at java.security.AccessController.doPrivileged(Native Method)
    at javax.jdo.JDOHelper.invoke(JDOHelper.java:1953)
    at javax.jdo.JDOHelper.invokeGetPersistenceManagerFactoryOnImplementation(JDOHelper.java:1159)
    at javax.jdo.JDOHelper.getPersistenceManagerFactory(JDOHelper.java:803)
    at javax.jdo.JDOHelper.getPersistenceManagerFactory(JDOHelper.java:698)
    at org.apache.hadoop.hive.metastore.ObjectStore.getPMF(ObjectStore.java:262)
    at org.apache.hadoop.hive.metastore.ObjectStore.getPersistenceManager(ObjectStore.java:291)
    at org.apache.hadoop.hive.metastore.ObjectStore.initialize(ObjectStore.java:224)
    at org.apache.hadoop.hive.metastore.ObjectStore.setConf(ObjectStore.java:199)
    at org.apache.hadoop.util.ReflectionUtils.setConf(ReflectionUtils.java:70)
    at org.apache.hadoop.util.ReflectionUtils.newInstance(ReflectionUtils.java:130)
    at org.apache.hadoop.hive.metastore.RetryingRawStore.<init>(RetryingRawStore.java:62)
    at org.apache.hadoop.hive.metastore.RetryingRawStore.getProxy(RetryingRawStore.java:71)
    at org.apache.hadoop.hive.metastore.HiveMetaStore$HMSHandler.newRawStore(HiveMetaStore.java:404)
    at org.apache.hadoop.hive.metastore.HiveMetaStore$HMSHandler.getMS(HiveMetaStore.java:392)
    at org.apache.hadoop.hive.metastore.HiveMetaStore$HMSHandler.createDefaultDB(HiveMetaStore.java:430)
    at org.apache.hadoop.hive.metastore.HiveMetaStore$HMSHandler.init(HiveMetaStore.java:324)
    at org.apache.hadoop.hive.metastore.HiveMetaStore$HMSHandler.<init>(HiveMetaStore.java:285)
    at org.apache.hadoop.hive.metastore.RetryingHMSHandler.<init>(RetryingHMSHandler.java:56)
    at org.apache.hadoop.hive.metastore.RetryingHMSHandler.getProxy(RetryingHMSHandler.java:61)
    at org.apache.hadoop.hive.metastore.HiveMetaStore.newHMSHandler(HiveMetaStore.java:4010)
    at org.apache.hadoop.hive.metastore.HiveMetaStore.startMetaStore(HiveMetaStore.java:4211)
    at org.apache.hadoop.hive.metastore.HiveMetaStore.main(HiveMetaStore.java:4147)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.apache.hadoop.util.RunJar.main(RunJar.java:208)



    Now my metastore is postgresql, I am trying to change the password in
    /etc/hive/conf/hive-site.xml and restart the service
    The conf dir in /var/run/../ still picks the prev password.

    Also I tried to configure mysql as metastore, but again the same it doesnt
    pick changes in hive-site.xml to generate conf dir in /var/run/

    Which hive-site.xml do I edit to reflect changes for custom configuration
    or any change?

    Thanks,
    Neha
  • Neha bagdia at May 7, 2013 at 10:50 am
    I am using the new one - CM 4.5.2
  • Serega Sheypak at May 7, 2013 at 10:55 am
    You should change password here. See the screenshot
    [image: Встроенное изображение 1]
    We use embedded postgreSQL


    2013/5/7 neha bagdia <neha.bagdia2@gmail.com>
    I am using the new one - CM 4.5.2
  • Darren Lo at May 7, 2013 at 4:33 pm
    As Serega correctly indicated, you should configure your Hive Metastore via
    the CM UI.

    /etc/hive/conf is only used for clients, such as the command-line tools
    "hive" and "hcatalog". Daemons dynamically generate their configuration and
    put it into a special directory whenever they are started.

    After making changes to the hive database, be sure to stop Hive, create the
    Hive Metastore Database Tables (in the Actions menu in the upper right),
    and Deploy Client Configuration (also in the Actions menu).

    Also note that you'll lose all information in the metastore (it won't be
    transferred to the new database), so you will need to re-add all of your
    tables. It may be easier to delete or change the warehouse directory and
    start from scratch so that you don't have information in your Hive
    Warehouse Directory in HDFS that is inconsistent with the contents of your
    Hive Metastore Database.

    Thanks,
    Darren

    On Tue, May 7, 2013 at 3:55 AM, Serega Sheypak wrote:

    You should change password here. See the screenshot
    [image: Встроенное изображение 1]
    We use embedded postgreSQL


    2013/5/7 neha bagdia <neha.bagdia2@gmail.com>
    I am using the new one - CM 4.5.2

    --
    Thanks,
    Darren
  • Neha bagdia at May 8, 2013 at 6:21 am
    Hi Daren,

    I tried what Serega said, edited the password as directed. I added default
    password i.e empty

    Now I get following in stderr logs

      AUX_CLASSPATH=/usr/share/cmf/lib/plugins/navigator-plugin-4.5.2-shaded.jar:/usr/share/cmf/lib/plugins/event-publish-4.5.2-shaded.jar:/usr/share/cmf/lib/plugins/tt-instrumentation-4.5.2.jar:/usr/share/java/mysql-connector-java.jar:/usr/share/cmf/lib/postgresql-9.0-801.jdbc4.jar:/usr/share/java/oracle-connector-java.jar
    + copy_hive_default /var/run/cloudera-scm-agent/process/144-hive-HIVEMETASTORE
    + [[ -z 4 ]]
    + '[' 1 -ne 1 ']'
    + [[ 4 == 3 ]]
    + [[ metastore == updatelocation ]]
    + [[ metastore == create_metastore_tables ]]
    + exec /opt/cloudera/parcels/CDH-4.2.1-1.cdh4.2.1.p0.5/lib/hive/bin/hive --config /var/run/cloudera-scm-agent/process/144-hive-HIVEMETASTORE --service metastore -p 9083
    javax.jdo.JDOFatalDataStoreException: Protocol error. Session setup failed.
      at org.datanucleus.jdo.NucleusJDOHelper.getJDOExceptionForNucleusException(NucleusJDOHelper.java:298)
      at org.datanucleus.jdo.JDOPersistenceManagerFactory.freezeConfiguration(JDOPersistenceManagerFactory.java:601)
      at org.datanucleus.jdo.JDOPersistenceManagerFactory.createPersistenceManagerFactory(JDOPersistenceManagerFactory.java:286)
      at org.datanucleus.jdo.JDOPersistenceManagerFactory.getPersistenceManagerFactory(JDOPersistenceManagerFactory.java:182)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:597)
      at javax.jdo.JDOHelper$16.run(JDOHelper.java:1958)
      at java.security.AccessController.doPrivileged(Native Method)
      at javax.jdo.JDOHelper.invoke(JDOHelper.java:1953)
      at javax.jdo.JDOHelper.invokeGetPersistenceManagerFactoryOnImplementation(JDOHelper.java:1159)
      at javax.jdo.JDOHelper.getPersistenceManagerFactory(JDOHelper.java:803)
      at javax.jdo.JDOHelper.getPersistenceManagerFactory(JDOHelper.java:698)
      at org.apache.hadoop.hive.metastore.ObjectStore.getPMF(ObjectStore.java:262)
      at org.apache.hadoop.hive.metastore.ObjectStore.getPersistenceManager(ObjectStore.java:291)
      at org.apache.hadoop.hive.metastore.ObjectStore.initialize(ObjectStore.java:224)
      at org.apache.hadoop.hive.metastore.ObjectStore.setConf(ObjectStore.java:199)
      at org.apache.hadoop.util.ReflectionUtils.setConf(ReflectionUtils.java:70)
      at org.apache.hadoop.util.ReflectionUtils.newInstance(ReflectionUtils.java:130)
      at org.apache.hadoop.hive.metastore.RetryingRawStore.(RetryingRawStore.java:71)
      at org.apache.hadoop.hive.metastore.HiveMetaStore$HMSHandler.newRawStore(HiveMetaStore.java:404)
      at org.apache.hadoop.hive.metastore.HiveMetaStore$HMSHandler.getMS(HiveMetaStore.java:392)
      at org.apache.hadoop.hive.metastore.HiveMetaStore$HMSHandler.createDefaultDB(HiveMetaStore.java:430)
      at org.apache.hadoop.hive.metastore.HiveMetaStore$HMSHandler.init(HiveMetaStore.java:324)
      at org.apache.hadoop.hive.metastore.HiveMetaStore$HMSHandler.(RetryingHMSHandler.java:56)
      at org.apache.hadoop.hive.metastore.RetryingHMSHandler.getProxy(RetryingHMSHandler.java:61)
      at org.apache.hadoop.hive.metastore.HiveMetaStore.newHMSHandler(HiveMetaStore.java:4010)
      at org.apache.hadoop.hive.metastore.HiveMetaStore.startMetaStore(HiveMetaStore.java:4211)
      at org.apache.hadoop.hive.metastore.HiveMetaStore.main(HiveMetaStore.java:4147)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:597)
      at org.apache.hadoop.util.RunJar.main(RunJar.java:208)NestedThrowablesStackTrace:
    org.postgresql.util.PSQLException: Protocol error. Session setup failed.
      at org.postgresql.core.v3.ConnectionFactoryImpl.doAuthentication(ConnectionFactoryImpl.java:407)
      at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:108)
      at org.postgresql.core.ConnectionFactory.openConnection(ConnectionFactory.java:66)
      at org.postgresql.jdbc2.AbstractJdbc2Connection.(AbstractJdbc3Connection.java:30)
      at org.postgresql.jdbc3g.AbstractJdbc3gConnection.(AbstractJdbc4Connection.java:30)
      at org.postgresql.jdbc4.Jdbc4Connection.(Driver.java:393)
      at org.postgresql.Driver.connect(Driver.java:267)
      at java.sql.DriverManager.getConnection(DriverManager.java:582)
      at java.sql.DriverManager.getConnection(DriverManager.java:185)
      at org.apache.commons.dbcp.DriverManagerConnectionFactory.createConnection(DriverManagerConnectionFactory.java:75)
      at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
      at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1148)
      at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
      at org.datanucleus.store.rdbms.ConnectionFactoryImpl$ManagedConnectionImpl.getConnection(ConnectionFactoryImpl.java:521)
      at org.datanucleus.store.rdbms.RDBMSStoreManager.(Native Method)
      at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
      at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
      at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
      at org.datanucleus.plugin.NonManagedPluginRegistry.createExecutableExtension(NonManagedPluginRegistry.java:593)
      at org.datanucleus.plugin.PluginManager.createExecutableExtension(PluginManager.java:300)
      at org.datanucleus.ObjectManagerFactoryImpl.initialiseStoreManager(ObjectManagerFactoryImpl.java:161)
      at org.datanucleus.jdo.JDOPersistenceManagerFactory.freezeConfiguration(JDOPersistenceManagerFactory.java:583)
      at org.datanucleus.jdo.JDOPersistenceManagerFactory.createPersistenceManagerFactory(JDOPersistenceManagerFactory.java:286)
      at org.datanucleus.jdo.JDOPersistenceManagerFactory.getPersistenceManagerFactory(JDOPersistenceManagerFactory.java:182)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

    Thanks,
    Neha
  • Darren Lo at May 8, 2013 at 2:26 pm
    Hi Neha,

    Can you try changing the user to have a non-empty password? We've seen
    issues using an empty password with Hive before.

    Thanks,
    Darren

    On Tue, May 7, 2013 at 11:21 PM, neha bagdia wrote:

    Hi Daren,

    I tried what Serega said, edited the password as directed. I added default
    password i.e empty

    Now I get following in stderr logs

    AUX_CLASSPATH=/usr/share/cmf/lib/plugins/navigator-plugin-4.5.2-shaded.jar:/usr/share/cmf/lib/plugins/event-publish-4.5.2-shaded.jar:/usr/share/cmf/lib/plugins/tt-instrumentation-4.5.2.jar:/usr/share/java/mysql-connector-java.jar:/usr/share/cmf/lib/postgresql-9.0-801.jdbc4.jar:/usr/share/java/oracle-connector-java.jar
    + copy_hive_default /var/run/cloudera-scm-agent/process/144-hive-HIVEMETASTORE
    + [[ -z 4 ]]
    + '[' 1 -ne 1 ']'
    + [[ 4 == 3 ]]
    + [[ metastore == updatelocation ]]
    + [[ metastore == create_metastore_tables ]]
    + exec /opt/cloudera/parcels/CDH-4.2.1-1.cdh4.2.1.p0.5/lib/hive/bin/hive --config /var/run/cloudera-scm-agent/process/144-hive-HIVEMETASTORE --service metastore -p 9083
    javax.jdo.JDOFatalDataStoreException: Protocol error. Session setup failed.
    at org.datanucleus.jdo.NucleusJDOHelper.getJDOExceptionForNucleusException(NucleusJDOHelper.java:298)
    at org.datanucleus.jdo.JDOPersistenceManagerFactory.freezeConfiguration(JDOPersistenceManagerFactory.java:601)
    at org.datanucleus.jdo.JDOPersistenceManagerFactory.createPersistenceManagerFactory(JDOPersistenceManagerFactory.java:286)
    at org.datanucleus.jdo.JDOPersistenceManagerFactory.getPersistenceManagerFactory(JDOPersistenceManagerFactory.java:182)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at javax.jdo.JDOHelper$16.run(JDOHelper.java:1958)
    at java.security.AccessController.doPrivileged(Native Method)
    at javax.jdo.JDOHelper.invoke(JDOHelper.java:1953)
    at javax.jdo.JDOHelper.invokeGetPersistenceManagerFactoryOnImplementation(JDOHelper.java:1159)
    at javax.jdo.JDOHelper.getPersistenceManagerFactory(JDOHelper.java:803)
    at javax.jdo.JDOHelper.getPersistenceManagerFactory(JDOHelper.java:698)
    at org.apache.hadoop.hive.metastore.ObjectStore.getPMF(ObjectStore.java:262)
    at org.apache.hadoop.hive.metastore.ObjectStore.getPersistenceManager(ObjectStore.java:291)
    at org.apache.hadoop.hive.metastore.ObjectStore.initialize(ObjectStore.java:224)
    at org.apache.hadoop.hive.metastore.ObjectStore.setConf(ObjectStore.java:199)
    at org.apache.hadoop.util.ReflectionUtils.setConf(ReflectionUtils.java:70)
    at org.apache.hadoop.util.ReflectionUtils.newInstance(ReflectionUtils.java:130)
    at org.apache.hadoop.hive.metastore.RetryingRawStore.<init>(RetryingRawStore.java:62)
    at org.apache.hadoop.hive.metastore.RetryingRawStore.getProxy(RetryingRawStore.java:71)
    at org.apache.hadoop.hive.metastore.HiveMetaStore$HMSHandler.newRawStore(HiveMetaStore.java:404)
    at org.apache.hadoop.hive.metastore.HiveMetaStore$HMSHandler.getMS(HiveMetaStore.java:392)
    at org.apache.hadoop.hive.metastore.HiveMetaStore$HMSHandler.createDefaultDB(HiveMetaStore.java:430)
    at org.apache.hadoop.hive.metastore.HiveMetaStore$HMSHandler.init(HiveMetaStore.java:324)
    at org.apache.hadoop.hive.metastore.HiveMetaStore$HMSHandler.<init>(HiveMetaStore.java:285)
    at org.apache.hadoop.hive.metastore.RetryingHMSHandler.<init>(RetryingHMSHandler.java:56)
    at org.apache.hadoop.hive.metastore.RetryingHMSHandler.getProxy(RetryingHMSHandler.java:61)
    at org.apache.hadoop.hive.metastore.HiveMetaStore.newHMSHandler(HiveMetaStore.java:4010)
    at org.apache.hadoop.hive.metastore.HiveMetaStore.startMetaStore(HiveMetaStore.java:4211)
    at org.apache.hadoop.hive.metastore.HiveMetaStore.main(HiveMetaStore.java:4147)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.apache.hadoop.util.RunJar.main(RunJar.java:208)NestedThrowablesStackTrace:
    org.postgresql.util.PSQLException: Protocol error. Session setup failed.
    at org.postgresql.core.v3.ConnectionFactoryImpl.doAuthentication(ConnectionFactoryImpl.java:407)
    at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:108)
    at org.postgresql.core.ConnectionFactory.openConnection(ConnectionFactory.java:66)
    at org.postgresql.jdbc2.AbstractJdbc2Connection.<init>(AbstractJdbc2Connection.java:125)
    at org.postgresql.jdbc3.AbstractJdbc3Connection.<init>(AbstractJdbc3Connection.java:30)
    at org.postgresql.jdbc3g.AbstractJdbc3gConnection.<init>(AbstractJdbc3gConnection.java:22)
    at org.postgresql.jdbc4.AbstractJdbc4Connection.<init>(AbstractJdbc4Connection.java:30)
    at org.postgresql.jdbc4.Jdbc4Connection.<init>(Jdbc4Connection.java:24)
    at org.postgresql.Driver.makeConnection(Driver.java:393)
    at org.postgresql.Driver.connect(Driver.java:267)
    at java.sql.DriverManager.getConnection(DriverManager.java:582)
    at java.sql.DriverManager.getConnection(DriverManager.java:185)
    at org.apache.commons.dbcp.DriverManagerConnectionFactory.createConnection(DriverManagerConnectionFactory.java:75)
    at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
    at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1148)
    at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
    at org.datanucleus.store.rdbms.ConnectionFactoryImpl$ManagedConnectionImpl.getConnection(ConnectionFactoryImpl.java:521)
    at org.datanucleus.store.rdbms.RDBMSStoreManager.<init>(RDBMSStoreManager.java:290)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
    at org.datanucleus.plugin.NonManagedPluginRegistry.createExecutableExtension(NonManagedPluginRegistry.java:593)
    at org.datanucleus.plugin.PluginManager.createExecutableExtension(PluginManager.java:300)
    at org.datanucleus.ObjectManagerFactoryImpl.initialiseStoreManager(ObjectManagerFactoryImpl.java:161)
    at org.datanucleus.jdo.JDOPersistenceManagerFactory.freezeConfiguration(JDOPersistenceManagerFactory.java:583)
    at org.datanucleus.jdo.JDOPersistenceManagerFactory.createPersistenceManagerFactory(JDOPersistenceManagerFactory.java:286)
    at org.datanucleus.jdo.JDOPersistenceManagerFactory.getPersistenceManagerFactory(JDOPersistenceManagerFactory.java:182)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

    Thanks,
    Neha


    --
    Thanks,
    Darren
  • Neha bagdia at May 9, 2013 at 4:32 am
    Tried that but didnt work. Finally I changed the metastore as mysql and it
    worked.

    Thanks
    Neha

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupscm-users @
categorieshadoop
postedSep 28, '12 at 8:22p
activeMay 9, '13 at 4:32a
posts10
users5
websitecloudera.com
irc#hadoop

People

Translate

site design / logo © 2022 Grokbase