ambari-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "vitthal (Suhas) Gogate (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (AMBARI-6704) ambari-server setup with the jdbc options results setup completed but miss some steps and missleading
Date Thu, 04 Sep 2014 17:44:52 GMT

    [ https://issues.apache.org/jira/browse/AMBARI-6704?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14121641#comment-14121641
] 

vitthal (Suhas) Gogate commented on AMBARI-6704:
------------------------------------------------

Jun, 
   -- Build fails after applying the patch to trunk. Can you take a look? 
   -- Also per how to commit wiki page, patch -p0 < your_patch fails. Can you make your
patch work with this command?  

======================================================================
ERROR: test_setup (TestAmbariServer.TestAmbariServer)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/root/ambari/ambari/ambari-common/src/test/python/mock/mock.py", line 1199, in patched
    return func(*args, **keywargs)
  File "/root/ambari/ambari/ambari-server/src/test/python/TestAmbariServer.py", line 2493,
in test_setup
    ambari_server.setup(args)
  File "/root/ambari/ambari/ambari-server/src/main/python/ambari-server.py", line 2214, in
setup
    raise NonFatalException(err)
NonFatalException: 'NonFatal exception: Remote database setup aborted.'

----------------------------------------------------------------------
Ran 225 tests in 11.170s

FAILED (errors=1)
----------------------------------------------------------------------
Failed tests:
ERROR: test_setup (TestAmbariServer.TestAmbariServer)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/root/ambari/ambari/ambari-common/src/test/python/mock/mock.py", line 1199, in patched
    return func(*args, **keywargs)
  File "/root/ambari/ambari/ambari-server/src/test/python/TestAmbariServer.py", line 2493,
in test_setup
    ambari_server.setup(args)
  File "/root/ambari/ambari/ambari-server/src/main/python/ambari-server.py", line 2214, in
setup
    raise NonFatalException(err)
NonFatalException: 'NonFatal exception: Remote database setup aborted.'

----------------------------------------------------------------------
Total run:599
Total errors:1
Total failures:0
ERROR
AMBARI_CONF_DIR is not set, using default /etc/ambari-server/conf
Cluster primary/cluster OS type is aaa11 and local/current OS type is aaa11
Cluster primary/cluster OS type is zzz_x77 and local/current OS type is ddd33
WARNING: Can not find ambari.properties.rpmsave file from previous version, skipping import
of settings
StackAdvisor implementation for stack HDP1, version 2.0.6 was not found
Returning DefaultStackAdvisor implementation
StackAdvisor implementation for stack XYZ, version 1.0.0 was loaded
StackAdvisor implementation for stack XYZ, version 1.0.1 was loaded
Returning XYZ101StackAdvisor implementation
DB connection check started.
Error downloading DBConnectionVerification.jar from Ambari Server resources. Check network
access to Ambari Server.
test exception
DB connection check started.
<MagicMock name='format().__add__()' id='40534224'>
DB connection check started.
INFO stdoutdata: test message
INFO stderrdata: 
INFO returncode: 1
DB connection check started.
INFO stdoutdata: test message
INFO stderrdata: 
INFO returncode: 0
DB connection check started.
Custom java is not available on host. Please install it. Java home should be the same as on
server. 

IP address forward resolution check started.
All hosts resolved to an IP address.
IP address forward resolution check started.
There were 5 host(s) that could not resolve to an IP address.
Java home check started.
Java home to check: test_java_home
Java home exists!
Java home check started.
Java home to check: test_java_home
Java home doesn't exist!
log
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO] 
[INFO] Ambari Main ....................................... SUCCESS [  5.830 s]
[INFO] Apache Ambari Project POM ......................... SUCCESS [  0.861 s]
[INFO] Ambari Web ........................................ SUCCESS [03:53 min]
[INFO] Ambari Views ...................................... SUCCESS [  3.584 s]
[INFO] Ambari Admin View ................................. SUCCESS [ 13.459 s]
[INFO] Ambari Server ..................................... FAILURE [37:02 min]
[INFO] Ambari Agent ...................................... SKIPPED
[INFO] Ambari Client ..................................... SKIPPED
[INFO] Ambari Python Client .............................. SKIPPED
[INFO] Ambari Groovy Client .............................. SKIPPED
[INFO] Ambari Shell ...................................... SKIPPED
[INFO] Ambari Python Shell ............................... SKIPPED
[INFO] Ambari Groovy Shell ............................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 41:20 min
[INFO] Finished at: 2014-09-04T15:39:32+00:00
[INFO] Final Memory: 40M/247M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.2:exec (python-test)
on project ambari-server: Command execution failed. Process exited with an error: 1(Exit value:
1) -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following
articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException


> ambari-server setup with the jdbc options results setup completed but miss some steps
and missleading
> -----------------------------------------------------------------------------------------------------
>
>                 Key: AMBARI-6704
>                 URL: https://issues.apache.org/jira/browse/AMBARI-6704
>             Project: Ambari
>          Issue Type: Bug
>            Reporter: jun aoki
>            Assignee: jun aoki
>            Priority: Minor
>             Fix For: 1.7.0
>
>         Attachments: AMBARI-6704.patch
>
>
> When executing ambari-server setup command with jdbc options, I get successfully setup
but many things (like selinux and creating ambari user) are missing.
> {code}
> $ sudo ambari-server setup --jdbc-db=mysql --jdbc-driver aaa
> Using python  /usr/bin/python2.6
> Setup ambari-server
> JDBC driver was successfully initialized .
> Ambari Server 'setup' completed successfully.
> {code}
> This should've kept going further
> {code}
> $ sudo ambari-server setup
> Using python  /usr/bin/python2.6
> Setup ambari-server
> Checking SELinux...
> SELinux status is 'enabled'
> SELinux mode is 'enforcing'
> Temporarily disabling SELinux
> WARNING: SELinux is set to 'permissive' mode and temporarily disabled.
> OK to continue [y/n] (y)?
> Ambari-server daemon is configured to run under user 'ambariuser'. Change this setting
[y/n] (n)? 
> ...
> {code}
> I can submit a patch in a short while.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message