incubator-ambari-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "624238814" <624238...@qq.com>
Subject Re: Re: A problem of install
Date Tue, 12 Nov 2013 01:29:45 GMT
hi Sumit,

actually, the ambari-server.out print the root cause, but I don't know how to fix it.
And I'm sure the ambari-server is running.

the ambari-server.out like follows:

Nov 11, 2013 4:19:52 AM com.google.inject.internal.MessageProcessor visit
INFO: An exception was caught and reported. Message: java.io.FileNotFoundException: File '${alias=ambari.db.password}'
does not exist
java.lang.RuntimeException: Unable to read database password
        at org.apache.ambari.server.configuration.Configuration.readPasswordFromFile(Configuration.java:638)
        at org.apache.ambari.server.configuration.Configuration.getDatabasePassword(Configuration.java:603)
        at org.apache.ambari.server.controller.ControllerModule.buildJpaPersistModule(ControllerModule.java:132)
        at org.apache.ambari.server.controller.ControllerModule.configure(ControllerModule.java:75)
        at com.google.inject.AbstractModule.configure(AbstractModule.java:59)
        at com.google.inject.spi.Elements$RecordingBinder.install(Elements.java:223)
        at com.google.inject.spi.Elements.getElements(Elements.java:101)
        at com.google.inject.internal.InjectorShell$Builder.build(InjectorShell.java:133)
        at com.google.inject.internal.InternalInjectorCreator.build(InternalInjectorCreator.java:103)
        at com.google.inject.Guice.createInjector(Guice.java:95)
        at com.google.inject.Guice.createInjector(Guice.java:72)
        at com.google.inject.Guice.createInjector(Guice.java:62)
"ambari-server.out" 52L, 3867C                                1,1           Top
Nov 11, 2013 4:19:52 AM com.google.inject.internal.MessageProcessor visit
INFO: An exception was caught and reported. Message: java.io.FileNotFoundException: File '${alias=ambari.db.password}'
does not exist
java.lang.RuntimeException: Unable to read database password
        at org.apache.ambari.server.configuration.Configuration.readPasswordFromFile(Configuration.java:638)
        at org.apache.ambari.server.configuration.Configuration.getDatabasePassword(Configuration.java:603)
        at org.apache.ambari.server.controller.ControllerModule.buildJpaPersistModule(ControllerModule.java:132)
        at org.apache.ambari.server.controller.ControllerModule.configure(ControllerModule.java:75)
        at com.google.inject.AbstractModule.configure(AbstractModule.java:59)
        at com.google.inject.spi.Elements$RecordingBinder.install(Elements.java:223)
        at com.google.inject.spi.Elements.getElements(Elements.java:101)
        at com.google.inject.internal.InjectorShell$Builder.build(InjectorShell.java:133)
        at com.google.inject.internal.InternalInjectorCreator.build(InternalInjectorCreator.java:103)
        at com.google.inject.Guice.createInjector(Guice.java:95)
        at com.google.inject.Guice.createInjector(Guice.java:72)
        at com.google.inject.Guice.createInjector(Guice.java:62)
        at org.apache.ambari.server.controller.AmbariServer.main(AmbariServer.java:443)
Caused by: java.io.FileNotFoundException: File '${alias=ambari.db.password}' does not exist
        at org.apache.commons.io.FileUtils.openInputStream(FileUtils.java:265)
        at org.apache.commons.io.FileUtils.readFileToString(FileUtils.java:1457)
        at org.apache.commons.io.FileUtils.readFileToString(FileUtils.java:1475)
        at org.apache.ambari.server.configuration.Configuration.readPasswordFromFile(Configuration.java:636)
        ... 12 more
Exception in thread "main" com.google.inject.CreationException: Guice creation errors:
1) An exception was caught and reported. Message: Unable to read database password
  at com.google.inject.internal.InjectorShell$Builder.build(InjectorShell.java:133)
1 error
        at com.google.inject.internal.Errors.throwCreationExceptionIfErrorsExist(Errors.java:435)
        at com.google.inject.internal.InternalInjectorCreator.initializeStatically(InternalInjectorCreator.java:154)
        at com.google.inject.internal.InternalInjectorCreator.build(InternalInjectorCreator.java:106)
        at com.google.inject.Guice.createInjector(Guice.java:95)
        at com.google.inject.Guice.createInjector(Guice.java:72)
        at com.google.inject.Guice.createInjector(Guice.java:62)
        at org.apache.ambari.server.controller.AmbariServer.main(AmbariServer.java:443)
Caused by: java.lang.RuntimeException: Unable to read database password
        at org.apache.ambari.server.configuration.Configuration.readPasswordFromFile(Configuration.java:638)
        at org.apache.ambari.server.configuration.Configuration.getDatabasePassword(Configuration.java:603)
        at org.apache.ambari.server.controller.ControllerModule.buildJpaPersistModule(ControllerModule.java:132)
        at org.apache.ambari.server.controller.ControllerModule.configure(ControllerModule.java:75)
        at com.google.inject.AbstractModule.configure(AbstractModule.java:59)
        at com.google.inject.spi.Elements$RecordingBinder.install(Elements.java:223)
        at com.google.inject.spi.Elements.getElements(Elements.java:101)
        at com.google.inject.internal.InjectorShell$Builder.build(InjectorShell.java:133)
        at com.google.inject.internal.InternalInjectorCreator.build(InternalInjectorCreator.java:103)
        ... 4 more
Caused by: java.io.FileNotFoundException: File '${alias=ambari.db.password}' does not exist
        at org.apache.commons.io.FileUtils.openInputStream(FileUtils.java:265)
        at org.apache.commons.io.FileUtils.readFileToString(FileUtils.java:1457)
        at org.apache.commons.io.FileUtils.readFileToString(FileUtils.java:1475)
        at org.apache.ambari.server.configuration.Configuration.readPasswordFromFile(Configuration.java:636)
        ... 12 more

Thanks.

Xinsheng Yang.


2013-11-12 



624238814 



发件人: Sumit Mohanty 
发送时间: 2013-11-12  00:11:00 
收件人: ambari-user@incubator.apache.org 
抄送: 
主题: Re: A problem of install 
 
Hi Xinsheng,


That error will not result in access issue - it is reporting that secure store is not configured.


Can you check the ambari-server.out file and also check if ambari-server is running (ambari-server
status)?


Depending on your deployment environment, you may need to allow access to port 8080.


You can make a curl call locally on the ambari-server host to check status – curl –u admin:admin
–X GET http://localhost:8080/api/v1/clusters


-Sumit 


From: 624238814 <624238814@qq.com>
Reply-To: <ambari-user@incubator.apache.org>
Date: Monday, November 11, 2013 2:31 AM
To: ambari-user <ambari-user@incubator.apache.org>
Subject: Re: A problem of install



by the way,

I found the log of ambari-server like follows:

04:19:51,179  INFO [main] Configuration:336 - Reading password from existing file
04:19:51,192  INFO [main] Configuration:514 - Hosts Mapping File null
04:19:51,193  INFO [main] HostsMap:60 - Using hostsmap file null
04:19:52,438 ERROR [main] MasterKeyServiceImpl:109 - Master key is not provided as a System
property or an environment varialble.
04:19:52,439  INFO [main] Configuration:415 - Credential provider creation failed.
Master key initialization failed.
~




2013-11-11 



624238814 



发件人: 624238814 
发送时间: 2013-11-11  16:05:07 
收件人: ambari-user 
抄送: 
主题: A problem of install 
Hi all,

I encount a problem during install ambari-server of 1.4.

I execute the command " ambari-server setup" and start successful.
But when I use web browser visit the website, it has no response.

And what should I do, or check something?

Best Regards.

Xinsheng Yang.

2013-11-11 



624238814 
Mime
View raw message