Support Questions

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

Configuring IP Tables for Ambari Installation on CentOS, Access Denied

avatar
Contributor

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
Contributor

@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
Contributor

@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