Error while start cdap standalone on cloudera vm 5.5

45 views
Skip to first unread message

vamsi...@gmail.com

unread,
Jun 17, 2016, 2:14:54 PM6/17/16
to CDAP User
Hi

I am facing the below exception when i try to start cdap.I have downloaded cdap SDK onto clouder vm 5.5 and tried  "cdap.sh start".

Exception in thread "DatasetTypeManager STARTING" java.lang.RuntimeException: co.cask.tephra.TransactionFailureException: Transaction function failure for transaction.
    at com.google.common.base.Throwables.propagate(Throwables.java:160)
    at com.google.common.util.concurrent.AbstractIdleService$1$1.run(AbstractIdleService.java:47)
    at java.lang.Thread.run(Thread.java:745)
Caused by: co.cask.tephra.TransactionFailureException: Transaction function failure for transaction.
    at co.cask.tephra.DefaultTransactionExecutor.executeOnce(DefaultTransactionExecutor.java:138)
    at co.cask.tephra.DefaultTransactionExecutor.executeWithRetry(DefaultTransactionExecutor.java:115)
    at co.cask.tephra.DefaultTransactionExecutor.execute(DefaultTransactionExecutor.java:72)
    at co.cask.tephra.DefaultTransactionExecutor.execute(DefaultTransactionExecutor.java:90)
    at co.cask.cdap.data2.dataset2.tx.TransactionalDatasetRegistry.execute(TransactionalDatasetRegistry.java:74)
    at co.cask.cdap.data2.datafabric.dataset.type.DatasetTypeManager.deleteSystemModules(DatasetTypeManager.java:442)
    at co.cask.cdap.data2.datafabric.dataset.type.DatasetTypeManager.startUp(DatasetTypeManager.java:96)
    at com.google.common.util.concurrent.AbstractIdleService$1$1.run(AbstractIdleService.java:43)
    ... 1 more
Caused by: co.cask.cdap.api.dataset.DataSetException: scan failed
------------------------
=----------------------- and so on...until...
Caused by: java.lang.IllegalArgumentException: File is not a table (bad magic number)
    at com.google.common.base.Preconditions.checkArgument(Preconditions.java:92)
    at org.iq80.leveldb.table.Footer.readFooter(Footer.java:69)
    at org.iq80.leveldb.table.MMapTable.init(MMapTable.java:52)
    at org.iq80.leveldb.table.Table.<init>(Table.java:59)
    at org.iq80.leveldb.table.MMapTable.<init>(MMapTable.java:44)
    at org.iq80.leveldb.impl.TableCache$TableAndFile.<init>(TableCache.java:115)
    at org.iq80.leveldb.impl.TableCache$TableAndFile.<init>(TableCache.java:102)
    at org.iq80.leveldb.impl.TableCache$1.load(TableCache.java:57)
    at org.iq80.leveldb.impl.TableCache$1.load(TableCache.java:54)
    at com.google.common.cache.LocalCache$LoadingValueReference.loadFuture(LocalCache.java:3589)
    at com.google.common.cache.LocalCache$Segment.loadSync(LocalCache.java:2374)
    at com.google.common.cache.LocalCache$Segment.lockedGetOrLoad(LocalCache.java:2337)
    at com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2252)
    ... 34 more
2016-06-17 10:50:10,351 - ERROR [ExternalJavaProcessExecutor:c.c.c.ExternalJavaProcessExecutor@94] - Process co.cask.cdap.kafka.run.KafkaServerMain exited with exit code 143
2016-06-17 10:50:10,351 - ERROR [ExternalJavaProcessExecutor:c.c.c.ExternalJavaProcessExecutor@94] - Process co.cask.cdap.kafka.run.KafkaServerMain exited with exit code 143
2016-06-17 10:50:10,366 - ERROR [ExternalJavaProcessExecutor:c.c.c.ExternalJavaProcessExecutor@94] - Process org.apache.zookeeper.server.ZooKeeperServerMain exited with exit code 143
2016-06-17 10:50:10,366 - ERROR [ExternalJavaProcessExecutor:c.c.c.ExternalJavaProcessExecutor@94] - Process org.apache.zookeeper.server.ZooKeeperServerMain exited with exit code 143

Rohit Sinha

unread,
Jun 17, 2016, 2:53:52 PM6/17/16
to CDAP User, vamsi...@gmail.com
Hello,

Can you please send us the cdap-debug.log file so that we can look into this issue. You can find it under logs in cdap sdk directory. 

Thanks. 

Vamsi Sudhir

unread,
Jun 20, 2016, 9:15:26 AM6/20/16
to CDAP User, vamsi...@gmail.com
I have done a fresh install of cloudera vm and tried cdap standalone again.
This time i get a different error. Please see the cdap-debug.log attached.
cdap-debug.log

Sreevatsan Raman

unread,
Jun 20, 2016, 11:51:19 AM6/20/16
to Vamsi Sudhir, CDAP User
Hi Vamsi, 

If you look at the logs, you will notice the following error. 

2016-06-20 05:58:29,297 - INFO  [InMemoryKeyManager STARTING:c.c.c.s.a.AbstractKeyManager@127] - Changed current key to KeyIdentifier{keyId=1896823339, expiration=9223372036854775807}

2016-06-20 05:58:29,416 - INFO  [NettyRouter-1:c.c.c.g.r.NettyRouter@281] - Starting Netty Router for service gateway on address /0.0.0.0:10000...

2016-06-20 05:58:29,440 - ERROR [main:c.c.c.StandaloneMain@401] - Failed to start Standalone CDAP: Router failed to bind to 0.0.0.0:10000

2016-06-20 05:58:29,451 - INFO  [Thread-2:c.c.c.k.r.KafkaServerMain@128] - Stopping embedded kafka server...

2016-06-20 05:58:29,780 - ERROR [ExternalJavaProcessExecutor:c.c.c.ExternalJavaProcessExecutor@94] - Process co.cask.cdap.kafka.run.KafkaServerMain exited with exit code 143


Do you have any process that is already binding to port 10000 on the host you are running router? You can change the port that router binds to and corresponding change for UI to talk to the correct router port by changing the following configurations in cdap-site.xml 

 <property

   <name>router.bind.port</name>

    <value>11015</value>

  </property>
 <property>
    <name>router.server.port</name>
    <value>11015</value>
  </property>

Let us know if you still have issues. 

Thanks,
Sree





--
You received this message because you are subscribed to the Google Groups "CDAP User" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cdap-user+...@googlegroups.com.
To post to this group, send email to cdap...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/cdap-user/15d4c19e-886a-453d-8f24-42714d30484a%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Vamsi Sudhir

unread,
Jun 21, 2016, 12:26:24 AM6/21/16
to CDAP User, vamsi...@gmail.com
That was it...I am able to see the UI coming up now. 
Thanks much for looking into this.

--------------------------------------------------
Hi Vamsi, 

If you look at the logs, you will notice the following error. 

2016-06-20 05:58:29,297 - INFO  [InMemoryKeyManager STARTING:c.c.c.s.a.AbstractKeyManager@127] - Changed current key to KeyIdentifier{keyId=1896823339, expiration=9223372036854775807}

2016-06-20 05:58:29,416 - INFO  [NettyRouter-1:c.c.c.g.r.NettyRouter@281] - Starting Netty Router for service gateway on address /0.0.0.0:10000...

2016-06-20 05:58:29,440 - ERROR [main:c.c.c.StandaloneMain@401] - Failed to start Standalone CDAP: Router failed to bind to 0.0.0.0:10000

2016-06-20 05:58:29,451 - INFO  [Thread-2:c.c.c.k.r.KafkaServerMain@128] - Stopping embedded kafka server...

2016-06-20 05:58:29,780 - ERROR [ExternalJavaProcessExecutor:c.c.c.ExternalJavaProcessExecutor@94] - Process co.cask.cdap.kafka.run.KafkaServerMain exited with exit code 143


Do you have any process that is already binding to port 10000 on the host you are running router? You can change the port that router binds to and corresponding change for UI to talk to the correct router port by changing the following configurations in cdap-site.xml 

 <property

   <name>router.bind.port</name>

    <value>11015</value>

  </property>
 <property>
    <name>router.server.port</name>
    <value>11015</value>
  </property>

Let us know if you still have issues. 

Thanks,
Sree


Reply all
Reply to author
Forward
0 new messages