Archives of Support Questions (Read Only)

This is an archived board for historical reference. Information and links may no longer be available or relevant
Announcements
This board is archived and read-only for historical reference. To ask a new question, please post a new topic on the appropriate active board.

Configuring IP Tables for Ambari Installation on CentOS, Access Denied

avatar
New Member

Hi Everyone, I am installing HDP2.6.0.0 onto a 3 node AWS cluster running CentOS Linux 7 x86_64 HVM EBS 1704_01.

Got stuck on Configuring iptables step in the manual https://docs.hortonworks.com/HDPDocuments/Ambari-2.6.0.0/bk_ambari-installation/content/configuring_...

Here is the error:

$ sudo systemctl disable firewalld

Failed to execute operation: Access denied

Also tried this (same w/out sudo):

$ systemctl disable firewalld

==== AUTHENTICATING FOR org.freedesktop.systemd1.manage-unit-files ===

Authentication is required to manage system service or unit files.

Authenticating as: Cloud User (centos)

Password:

==== AUTHENTICATION COMPLETE ===

Failed to execute operation: Access denied

Any idea why is it access denied? What is the right way to do this step?

1 ACCEPTED SOLUTION

avatar
New Member

@Geoffrey Shelton Okot found the solution. Firewalld was not installed on the image I am using.

After running the command from this link, everything worked. It was not the permissions issue, firewalld was not on the image. Centos has an unclear way of explaining this.

https://docs-old.fedoraproject.org/en-US/Fedora/19/html/Security_Guide/sec-Check_if_firewalld_is_ins...

Thanks for taking a look at this.

Best

View solution in original post

2 REPLIES 2

avatar
Master Mentor

@Michael O

The problem is clearly a permission issue "Access Denied"

The AWS user is usually ec2-user or ubuntu

To add a temporary password to a root user:

1.Connect to your EC2 instance running Linux by using SSH.

2. Assume root user permissions by running the following command:

<em>$ sudo su</em>

3. Create a password for the root user by running the following command:

<em># passwd root </em>

4. When prompted, enter your temporary root password, and then enter it again to confirm it.

Note: You must run this command as the root user.

After you complete the task, delete the root password by running the following command:

<em># passwd –d root</em>

Hope that helps

avatar
New Member

@Geoffrey Shelton Okot found the solution. Firewalld was not installed on the image I am using.

After running the command from this link, everything worked. It was not the permissions issue, firewalld was not on the image. Centos has an unclear way of explaining this.

https://docs-old.fedoraproject.org/en-US/Fedora/19/html/Security_Guide/sec-Check_if_firewalld_is_ins...

Thanks for taking a look at this.

Best