Support Questions

Find answers, ask questions, and share your expertise
Announcements
Celebrating as our community reaches 100,000 members! Thank you!

Ambrai-server 2.1 Installed, while #ambari-server setup issse !

avatar
Expert Contributor
  1. [root@centosbase ~]# sudo yum -y install ambari-server
  2. Loaded plugins: fastestmirror Setting up Install Process Loading mirror speeds from cached hostfile * epel: mirror.wanxp.id Resolving Dependencies --> Running transaction check ---> Package ambari-server.x86_64 0:2.1.0-1470 will be installed --> Finished Dependency Resolution

    Dependencies Resolved

    ================================================================================================================================================================================================ Package Arch Version Repository Size ================================================================================================================================================================================================ Installing: ambari-server x86_64 2.1.0-1470 Updates-ambari-2.1.0 326 M

    Transaction Summary ================================================================================================================================================================================================ Install 1 Package(s)

    Total download size: 326 M Installed size: 350 M Downloading Packages: ambari-server-2.1.0-1470.x86_64.rpm | 326 MB 00:04 Running rpm_check_debug Running Transaction Test Transaction Test Succeeded Running Transaction Installing : ambari-server-2.1.0-1470.x86_64 1/1 cp: cannot stat `/var/lib/ambari-server/resources/views/*.jar': No such file or directory Verifying : ambari-server-2.1.0-1470.x86_64 1/1

    Installed: ambari-server.x86_64 0:2.1.0-1470

    Complete!

  3. [root@centosbase ~]# ambari-server setup

  4. Using python /usr/bin/python2.6 Setup ambari-server Checking SELinux... SELinux status is 'disabled' Customize user account for ambari-server daemon [y/n] (n)? Adjusting ambari-server permissions and ownership... Checking firewall status... Checking JDK... [1] Oracle JDK 1.8 + Java Cryptography Extension (JCE) Policy Files 8 [2] Oracle JDK 1.7 + Java Cryptography Extension (JCE) Policy Files 7 [3] Custom JDK ============================================================================== Enter choice : 1 JDK already exists, using /var/lib/ambari-server/resources/jdk-8u40-linux-x64.tar.gz Installing JDK to /usr/jdk64/ Successfully installed JDK to /usr/jdk64/ JCE Policy archive already exists, using

  5. /var/lib/ambari-server/resources/jce_policy-8.zip Installing JCE policy... Completing setup...

  6. Configuring database...

  7. Enter advanced database configuration [y/n] (n)?

  8. Configuring database...

  9. ERROR: Unexpected OSError: [Errno 17]

  10. File exists For more info run ambari-server with -v or --verbose option

1 ACCEPTED SOLUTION

avatar
Expert Contributor

thank you Artem i am doing it for personal test.

Now i able to install ambari and setup as well on other virtuwal machine.

Any ways thanks for your guidance, future it will help me.

View solution in original post

10 REPLIES 10

avatar
@Shiv kumar

As you are using some advanced database configuration. Can you please check is database schema installed properly

http://docs.hortonworks.com/HDPDocuments/Ambari-2.1.2.0/bk_ambari_reference_guide/content/_using_non...

avatar
Expert Contributor

Thank for your reply

I am not using Advanced Database configuration , while configuring by default database getting an error and please find error .

avatar
Expert Contributor

Please find error as below

[root@centosbase ~]# ambari-server setup -v Using python /usr/bin/python2.6 Setup ambari-server Checking SELinux... INFO: about to run command: /usr/sbin/sestatus SELinux status is 'disabled' INFO: Loading properties from /etc/ambari-server/conf/ambari.properties Customize user account for ambari-server daemon [y/n] (n)? n INFO: Loading properties from /etc/ambari-server/conf/ambari.properties INFO: Cleaning bootstrap directory (/var/run/ambari-server/bootstrap) contents... Adjusting ambari-server permissions and ownership... INFO: Setting file permissions: /var/log/ambari-server/ 644 root True INFO: about to run command: chmod -R 644 /var/log/ambari-server/ INFO: about to run command: chown -R root /var/log/ambari-server/ INFO: Setting file permissions: /var/log/ambari-server/ 755 root False INFO: about to run command: chmod 755 /var/log/ambari-server/ INFO: about to run command: chown root /var/log/ambari-server/ INFO: Setting file permissions: /var/run/ambari-server/ 644 root True

5868-hk10x.png

avatar
Expert Contributor

Could some help me on this issue , i am facing this issue since two days. Is any support team Hortonworks is there ?

avatar
Master Mentor

I would start from scratch, clean up everything,

yum erase ambari*
rm -rf any ambari dir
rm -rf /usr/lib/python2.6/site-packages/ambari*


					
				
			
			
				
			
			
			
			
			
			
			
		

avatar
Expert Contributor
  • I have cleaned every thing, after clean also same

$sudo ambari-server setup -v

Using python /usr/bin/python2.6 Setup ambari-server Checking SELinux... INFO: about to run command: /usr/sbin/sestatus SELinux status is 'disabled' INFO: Loading properties from /etc/ambari-server/conf/ambari.properties Customize user account for ambari-server daemon [y/n] (n)? INFO: Loading properties from /etc/ambari-server/conf/ambari.properties INFO: Cleaning bootstrap directory (/var/run/ambari-server/bootstrap) contents.

.

.

.

Enter advanced database configuration [y/n] (n)? Configuring database... INFO: Loading properties from /etc/ambari-server/conf/ambari.properties Traceback (most recent call last): File "/usr/sbin/ambari-server.py", line 624, in <module> mainBody() File "/usr/sbin/ambari-server.py", line 612, in mainBody main(options, args, parser) File "/usr/sbin/ambari-server.py", line 568, in main action_obj.execute() File "/usr/sbin/ambari-server.py", line 58, in execute self.fn(*self.args, **self.kwargs) File "/usr/lib/python2.6/site-packages/ambari_server/serverSetup.py", line 1076, in setup _setup_database(options) File "/usr/lib/python2.6/site-packages/ambari_server/serverSetup.py", line 893, in _setup_database dbmsAmbari = factory.create(options, properties, "Ambari") File "/usr/lib/python2.6/site-packages/ambari_server/dbConfiguration.py", line 421, in create dbmsConfig = desc.create_config(options, properties, dbId) File "/usr/lib/python2.6/site-packages/ambari_server/dbConfiguration.py", line 66, in create_config return self.fn_create_config(options, properties, self.storage_key, dbId) File "/usr/lib/python2.6/site-packages/ambari_server/dbConfiguration_linux.py", line 702, in createPGConfig return PGConfig(options, properties, storage_type) File "/usr/lib/python2.6/site-packages/ambari_server/dbConfiguration_linux.py", line 351, in __init__ PGConfig.PG_HBA_DIR = get_postgre_hba_dir(OS_FAMILY) File "/usr/lib/python2.6/site-packages/ambari_server/utils.py", line 225, in get_postgre_hba_dir get_pg_hba_init_files()) OSError: [Errno 17] File exists

avatar
Master Mentor
@Shiv kumar

consider opening a case with Hortonworks support, looks like you can't avoid having a webex with support.

avatar
Expert Contributor

Dear Artem,

Thank you for your update on the issue.

Could you please let me know process for "Opening a case with Hortonworks support " and is i need to take premium service ?

Your concerns are appreciated.

avatar
Master Mentor

you have to be a paid customer. If so, you should have access to support.hortonworks.com and open a case. If you're not a customer and would like to be, let us know your location and we can get you in touch with an account representative who can initiate this process. @Shiv kumar