You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ambari.apache.org by "Jayush Luniya (JIRA)" <ji...@apache.org> on 2015/06/18 04:56:03 UTC

[jira] [Commented] (AMBARI-11988) NonRoot: Ambari-Server setup fails when jdk is preinstalled

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

Jayush Luniya commented on AMBARI-11988:
----------------------------------------

Fix typo in setupSecurity.py

*Before:*
[root@c6401 ambari-server]# ambari-server setup -j /usr/jdk64/jdk1.8.0_40 -s
Using python  /usr/bin/python2.6
Setup ambari-server
Checking SELinux...
SELinux status is 'disabled'
Ambari-server daemon is configured to run under user 'vagrant'. Change this setting [y/n] (n)?
ERROR: Unexpected error local variable 'jce_file_path' referenced before assignment
ERROR: Exiting with exit code 1.
REASON: Failed to create user. Exiting.

*After:*
[root@c6401 ambari-server]# ambari-server setup -j /usr/jdk64/jdk1.8.0_40 -s
Using python  /usr/bin/python2.6
Setup ambari-server
Checking SELinux...
SELinux status is 'disabled'
Ambari-server daemon is configured to run under user 'vagrant'. Change this setting [y/n] (n)?
Adjusting ambari-server permissions and ownership...
Checking firewall status...
Checking JDK...
WARNING: JAVA_HOME /usr/jdk64/jdk1.8.0_40 must be valid on ALL hosts
WARNING: JCE Policy files are required for configuring Kerberos security. If you plan to use Kerberos,please make sure JCE Unlimited Strength Jurisdiction Policy Files are valid on all hosts.
Completing setup...
Configuring database...
Enter advanced database configuration [y/n] (n)?
Configuring database...
Default properties detected. Using built-in database.
Configuring ambari database...
Checking PostgreSQL...
Configuring local database...
Connecting to local database...done.
Configuring PostgreSQL...
Backup for pg_hba found, reconfiguration not required
Extracting system views...
.......
Adjusting ambari-server permissions and ownership...
Ambari Server 'setup' completed successfully.

> NonRoot: Ambari-Server setup fails when jdk is preinstalled
> -----------------------------------------------------------
>
>                 Key: AMBARI-11988
>                 URL: https://issues.apache.org/jira/browse/AMBARI-11988
>             Project: Ambari
>          Issue Type: Bug
>          Components: ambari-server
>    Affects Versions: 2.1.0
>            Reporter: Jayush Luniya
>            Assignee: Jayush Luniya
>            Priority: Critical
>             Fix For: 2.1.0
>
>         Attachments: AMBARI-11988.patch
>
>
> ambari-server setup fails when java jdk is pre-installed.
> Logs: 
> helios1:/data/pghadoop # ambari-server setup -s -j /opt/teradata/jvm64/jdk8
> Using python  /usr/bin/python2.6
> Setup ambari-server
> Checking SELinux...
> WARNING: Could not run /usr/sbin/sestatus: OK
> Customize user account for ambari-server daemon [y/n] (n)?
> ERROR: Unexpected error local variable 'jce_file_path' referenced before assignment
> ERROR: Exiting with exit code 1.
> REASON: Failed to create user. Exiting.
> Fix:
> Fix typo in setupSecurity.py



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