Member since
08-11-2017
6
Posts
0
Kudos Received
0
Solutions
08-27-2017
04:05 AM
My friend! I solved the issue. Let me tell you how:
I tried your instructions but the error remained.
I uninstalled and installed ambari several times, following this instructions:
How to Completely Clean, Remove or Uninstall Ambari for Fresh Install
Completely uninstall HDP and Ambari
But the error remained again.
Finally I tried install Ambari 2.4, run "ambari-server setup" and It worked no issue! I don't know what happend. I don't know if the issue was Ambari 2.5 with CentOS 6 or another thing. This issue was so terrible for me.
Thank you for helping me!
Please can you help me with another thing?
I'm installing Hortonworks and I'm in the the part of customizing the services. I have a 1.9 TB disk and I want Datanodes storage data in this disk. How do I select this disk in this part? I tried put the /home (1.9 TB) directory in DataNode directories but It shows this alert: Can't start with "home(s)". Disks and Customize Services
... View more
08-26-2017
02:39 PM
When I check metainfo data in the databases, It shows this: awv=> SELECT "metainfo_key", "metainfo_value" FROM metainfo;
ERROR: relation "metainfo" does not exist
LÍNEA 1: SELECT "metainfo_key", "metainfo_value" FROM metainfo; Then I run "ambari-server -reset" and It shows this: Using python /usr/bin/python
Resetting ambari-server
**** WARNING **** You are about to reset and clear the Ambari Server database. This will remove all cluster host and configuration information from the database. You will be required to re-configure the Ambari server and re-run the cluster wizard.
Are you SURE you want to perform the reset [yes/no] (no)? yes
ERROR: Exiting with exit code 1.
REASON: Ambari doesn't support resetting exernal DB automatically. To reset Ambari Server schema you must first drop and then create it using DDL scripts from "/var/lib/ambari-server/resources/"
... View more
08-26-2017
12:58 AM
It works! Thank you! But I'm having another error when running "ambari-server start": ----------------------------------------------------------------------------------------------------------------------------------------------------------------- Local Exception Stack: Exception [EclipseLink-4002] (Eclipse Persistence Services - 2.6.2.v20151217-774c696): org.eclipse.persistence.exceptions.DatabaseExc$ Internal Exception: org.postgresql.util.PSQLException: ERROR: relation "metainfo" does not exist Position: 46 Error Code: 0
Call: SELECT "metainfo_key", "metainfo_value" FROM metainfo WHERE ("metainfo_key" = ?)
bind => [1 parameter bound] ... ------------------------------------------------------------------------------------------------------------------------------------------------------------------
... View more
08-25-2017
07:42 PM
Hello Everyone! I need your help because I'm having an issue when running ambari-server setup (Ambari 2.5). The error is as follows: ------------------------------------------------------------------------------------------------------------------------------------------------------------------- Configuring ambari database... Checking PostgreSQL... Configuring local database... Configuring PostgreSQL... Backup for pg_hba found, reconfiguration not required Creating schema and user...
done. Creating tables... ERROR: Failed to execute command:['ambari-sudo.sh', 'bash', '-c', 'export PGPASSWORD=hola && psql -U awv_user -f /var/lib/ambari-server/resources/Ambari-DDL-Postgres-CREATE.sql'] ERROR: stderr:psql: FATAL: database "awv_user" does not exist ERROR: stdout:
failed to execute queries ...retrying (1) Creating tables...
ERROR: Failed to execute command:['ambari-sudo.sh', 'bash', '-c', 'export PGPASSWORD=hola && psql -U awv_user -f /var/lib/ambari-server/resources/Ambari-DDL-Postgres-CREATE.sql'] ERROR: stderr:psql: FATAL: database "awv_user" does not exist ERROR: stdout:
failed to execute queries ...retrying (2)
Creating tables...
ERROR: Exiting with exit code 2.
REASON: Running database init script failed. Exiting. --------------------------------------------------------------------------------------------------------------------------------------------------------------- Other data: Database admin user: postgres Database name: awv Postgres schema: ambari Username: awv_user Sorry for my English and thank you for your attention!
... View more
Labels:
- Labels:
-
Apache Ambari