incubator-ambari-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Maxim Mikheev <mik...@gmail.com>
Subject Re: "ambari-server setup" exit with error on Amazon with "Amazon Linux AMI 2013.03"
Date Mon, 13 May 2013 00:27:15 GMT
Hi Yusaku,

I resolved an issue.
The problem is in Amazon AMI.
chkconfig iptables off - didn't work also, in the same time iptables -l 
provides list of active filters.

Amazon AMI split iptables into two packages and one is not installed by 
default.
The solution was to install "iptables-services"

Thanks,
     Max


On 05/11/2013 03:57 PM, Yusaku Sako wrote:
> Max,
>
> Seems like iptables is not a recognized service on your machine; you
> probably don't have /etc/init.d/iptables.
> On RHEL/CentOS, it should be there by default.
> What does "cat /etc/issue" show on your machine?
> I was able to repro by doing "mv /etc/init.d/iptables
> /etc/init.d/iptables2" and running "ambari-server setup" on my dev CentOS
> 6.3 machine.
>
> If you want to proceed for now, you can just comment out the iptables check
> in /usr/sbin/ambari-server.py (and don't forget to turn off iptables via
> the command line).
> Also, if you want to file a JIRA and submit a patch for making the setup
> code when iptables is not a recognized service, that would be great.
>
> Yusaku
>
>
>
> On Sat, May 11, 2013 at 12:06 PM, Maxim Mikheev <mikhmv@gmail.com> wrote:
>
>> Hi Everyone,
>>
>> I was able to build a Ambari on "Amazon Linux AMI 2013.03" (RedHat 6
>> instance eligible for spot instances).
>>
>> I installed rpm ambari-server-1.3.0-**SNAPSHOT20130511180030.noarch.**rpm
>> by command:
>> sudo yum -y install /home/ec2-user/ambari/ambari-**
>> server/target/rpm/ambari-**server/RPMS/noarch/*.rpm
>>
>> Command: "sudo ambari-server setup" gave me error.  The full log is below:
>> ------------------------------**------------------------------**--
>> Using python  /usr/bin/python2.6
>> Run postgresql initdb
>> Run postgresql start
>> Starting postgresql service:                               [  OK  ]
>> Setup ambari-server
>> Checking SELinux...
>> WARNING: Could not run /usr/sbin/sestatus: OK
>> Checking iptables...
>> iptables is disabled now
>> iptables: unrecognized service
>>
>> Traceback (most recent call last):
>>    File "/usr/sbin/ambari-server.py", line 1436, in <module>
>>      main()
>>    File "/usr/sbin/ambari-server.py", line 1303, in main
>>      setup(options)
>>    File "/usr/sbin/ambari-server.py", line 865, in setup
>>      retcode, out = check_iptables()
>> TypeError: 'int' object is not iterable
>> ------------------------------**------------------------------**----------
>>
>> Can you help me to resolve this issue?
>>
>> Regards,
>>      Max
>>


Mime
View raw message