ambari-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dmitry Lysnichenko (JIRA)" <j...@apache.org>
Subject [jira] [Reopened] (AMBARI-3716) Reset server does not say if it's failed
Date Thu, 07 Nov 2013 20:45:20 GMT

     [ https://issues.apache.org/jira/browse/AMBARI-3716?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Dmitry Lysnichenko reopened AMBARI-3716:
----------------------------------------


Reverted patch at trunk.
Change seems to break silent setup (ambari-server setup -s)
{code}
root@vm-1 ~]# ambari-server setup -s
Using python  /usr/bin/python2.6
Initializing...
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)? 
Customize user account for ambari-server daemon [y/n] (n)? 
Adjusting ambari-server permissions and ownership...
Checking iptables...
WARNING: iptables is running. Confirm the necessary Ambari ports are accessible. Refer to
the Ambari documentation for more details on ports.
OK to continue [y/n] (y)? 
Checking JDK...
JDK already exists, using /var/lib/ambari-server/resources/jdk-6u31-linux-x64.bin
Installing JDK to /usr/jdk64
Successfully installed JDK to /usr/jdk64/jdk1.6.0_31
Downloading JCE Policy archive from http://public-repo-1.hortonworks.com/ARTIFACTS/jce_policy-6.zip
to /var/lib/ambari-server/resources/jce_policy-6.zip
To download the JCE Policy files you must accept the license terms found at http://www.oracle.com/technetwork/java/javase/terms/license/index.htmlNot
accepting will result in errors when configuring Kerberos security. 
Do you accept the Oracle Binary Code License Agreement [y/n] (y)? 
Successfully downloaded JCE Policy archive to /var/lib/ambari-server/resources/jce_policy-6.zip
Completing setup...
Configuring database...
Enter advanced database configuration [y/n] (n)? 
Default properties detected. Using built-in database.
Checking PostgreSQL...
Running initdb: This may take upto a minute.
About to start PostgreSQL
Configuring local database...
Connecting to the database. Attempt 1...
ERROR: Exiting with exit code (0, 'CREATE DATABASE\nYou are now connected to database "ambari".\nCREATE
ROLE\nGRANT\nCREATE SCHEMA\nALTER SCHEMA\nALTER ROLE\nCREATE TABLE\nGRANT\nCREATE TABLE\nGRANT\nCREATE
TABLE\nGRANT\nCREATE TABLE\nGRANT\nCREATE TABLE\nGRANT\nCREATE TABLE\nGRANT\nCREATE TABLE\nGRANT\nCREATE
TABLE\nGRANT\nCREATE TABLE\nGRANT\nCREATE TABLE\nGRANT\nCREATE TABLE\nGRANT\nCREATE TABLE\nGRANT\nCREATE
TABLE\nGRANT\nCREATE TABLE\nGRANT\nCREATE TABLE\nGRANT\nCREATE TABLE\nGRANT\nCREATE TABLE\nGRANT\nCREATE
TABLE\nGRANT\nCREATE TABLE\nGRANT\nCREATE TABLE\nGRANT\nCREATE TABLE\nGRANT\nCREATE TABLE\nGRANT\nCREATE
TABLE\nGRANT\nCREATE TABLE\nGRANT\nCREATE TABLE\nGRANT\nCREATE TABLE\nGRANT\nCREATE TABLE\nGRANT\nCREATE
TABLE\nGRANT\nCREATE TABLE\nGRANT\nCREATE TABLE\nGRANT\nCREATE TABLE\nGRANT\nALTER TABLE\nALTER
TABLE\nALTER TABLE\nALTER TABLE\nALTER TABLE\nALTER TABLE\nALTER TABLE\nALTER TABLE\nALTER
TABLE\nALTER TABLE\nALTER TABLE\nALTER TABLE\nALTER TABLE\nALTER TABLE\nALTER TABLE\nALTER
TABLE\nALTER TABLE\nALTER TABLE\nALTER TABLE\nALTER TABLE\nALTER TABLE\nALTER TABLE\nALTER
TABLE\nALTER TABLE\nALTER TABLE\nALTER TABLE\nALTER TABLE\nALTER TABLE\nALTER TABLE\nALTER
TABLE\nALTER TABLE\nALTER TABLE\nALTER TABLE\nALTER TABLE\nALTER TABLE\nBEGIN\nINSERT 0 4\nINSERT
0 2\nINSERT 0 1\nINSERT 0 1\nINSERT 0 1\nCOMMIT\nCREATE DATABASE\nYou are now connected to
database "ambarirca".\nCREATE ROLE\nGRANT\nCREATE TABLE\nGRANT\nCREATE TABLE\nGRANT\nCREATE
TABLE\nGRANT\nCREATE TABLE\nGRANT\nCREATE TABLE\nGRANT\nCREATE TABLE\nGRANT\nCREATE TABLE\nGRANT\n',
'psql:/var/lib/ambari-server/resources/Ambari-DDL-Postgres-CREATE.sql:21: ERROR:  role "ambari"
does not exist\npsql:/var/lib/ambari-server/resources/Ambari-DDL-Postgres-CREATE.sql:31: NOTICE:
 CREATE TABLE / PRIMARY KEY will create implicit index "clusters_pkey" for table "clusters"\npsql:/var/lib/ambari-server/resources/Ambari-DDL-Postgres-CREATE.sql:31:
NOTICE:  CREATE TABLE / UNIQUE will create implicit index "clusters_cluster_name_key" for
table "clusters"\npsql:/var/lib/ambari-server/resources/Ambari-DDL-Postgres-CREATE.sql:34:
NOTICE:  CREATE TABLE / PRIMARY KEY will create implicit index "clusterconfig_pkey" for table
"clusterconfig"\npsql:/var/lib/ambari-server/resources/Ambari-DDL-Postgres-CREATE.sql:37:
NOTICE:  CREATE TABLE / PRIMARY KEY will create implicit index "clusterconfigmapping_pkey"
for table "clusterconfigmapping"\npsql:/var/lib/ambari-server/resources/Ambari-DDL-Postgres-CREATE.sql:40:
NOTICE:  CREATE TABLE / PRIMARY KEY will create implicit index "clusterservices_pkey" for
table "clusterservices"\npsql:/var/lib/ambari-server/resources/Ambari-DDL-Postgres-CREATE.sql:43:
NOTICE:  CREATE TABLE / PRIMARY KEY will create implicit index "clusterstate_pkey" for table
"clusterstate"\npsql:/var/lib/ambari-server/resou
{code}



> Reset server does not say if it's failed
> ----------------------------------------
>
>                 Key: AMBARI-3716
>                 URL: https://issues.apache.org/jira/browse/AMBARI-3716
>             Project: Ambari
>          Issue Type: Bug
>          Components: controller
>    Affects Versions: 1.4.1
>            Reporter: Eugene Chekanskiy
>            Assignee: Eugene Chekanskiy
>             Fix For: 1.4.2
>
>         Attachments: AMBARI-3716.patch
>
>
> We should add some error handling to print proper status of reset command. We need to
print error message, when database blocked by other users, and warn, if some non critical
errors present during database requests.



--
This message was sent by Atlassian JIRA
(v6.1#6144)

Mime
View raw message