Giter Site home page Giter Site logo

Namenode format fails about ansible-examples HOT 7 CLOSED

ansible avatar ansible commented on May 20, 2024
Namenode format fails

from ansible-examples.

Comments (7)

subrotosanyal avatar subrotosanyal commented on May 20, 2024

Hi @mpdehaan

This is from one of the example present in the Git repo. This looks like a problem with the scripts (not a problem of Ansible framewok).
If I change the permissions manually for the file /etc/hadoop/conf.empty/mapred-site.xml and re-execute the scripts; every thing works nicely. I would say this isn't a hadoop issue.

I see the issue is closed; please confirm if the issue is really fixed or an invalid.

Cheers,
Subroto Sanyal

from ansible-examples.

bennojoy avatar bennojoy commented on May 20, 2024

Hi Subroto,

We will have a look at the issue, can you let us know which version of
ansible and what distribution of os you are using for this installation
and also can you check the permission on the
/etc/hadoop/conf.empty/mapred-site.xml.

Also can you set:

  • name: Copy the hadoop configuration files
    template: src=roles/common/templates/hadoop_ha_conf/{{ item }}.j2
    dest=/etc/hadoop/conf/{{ item }} mode=0644

in https://github.com/ansible/ansible-examples/blob/master/hadoop/roles/hadoop_primary/tasks/hadoop_master.yml

and see if that helps.

Regards,
Benno Joy

On Tue, Nov 12, 2013 at 7:39 PM, subrotosanyal [email protected]:

Hi @mpdehaan https://github.com/mpdehaan

This is from one of the example present in the Git repo. This looks like a
problem with the scripts (not a problem of Ansible framewok).

I see the issue is closed; please confirm if the issue is really fixed or
an invalid.

Cheers,
Subroto Sanyal


Reply to this email directly or view it on GitHubhttps://github.com//issues/35#issuecomment-28295562
.

from ansible-examples.

subrotosanyal avatar subrotosanyal commented on May 20, 2024

Hi @bennojoy ,
Ansible Version:

Subroto:dap subroto$ ansible --version
ansible 1.3.4

OS Distribution:

[subroto@ip-10-143-182-148 Datameer-3.1.0-cdh4.4-mr1]$ lsb_release -a
LSB Version:    :core-4.0-amd64:core-4.0-noarch:graphics-4.0-amd64:graphics-4.0-noarch:printing-4.0-amd64:printing-4.0-noarch
Distributor ID: CentOS
Description:    CentOS release 6.2 (Final)
Release:    6.2
Codename:   Final

Permission of the file:

[root@ip-10-143-182-148 ~]# ls -l /etc/hadoop/conf.empty
total 60
-rw-r--r-- 1 root root 1335 Sep  3 22:48 configuration.xsl
-rw-r--r-- 1 root root 1001 Nov 12 07:03 core-site.xml
-rw-r--r-- 1 root root 2489 Nov 12 07:03 hadoop-metrics.properties
-rw-r--r-- 1 root root 1773 Nov 12 07:03 hadoop-metrics2.properties
-rw-r--r-- 1 root root 9196 Sep  3 22:48 hadoop-policy.xml
-rw-r--r-- 1 root root 3730 Nov 12 07:03 hdfs-site.xml
-rw-r--r-- 1 root root 8735 Sep  3 22:48 log4j.properties
-rw------- 1 root root 3752 Nov 12 07:03 mapred-site.xml
-rw-r--r-- 1 root root  125 Nov 12 07:03 slaves
-rw-r--r-- 1 root root 2316 Sep  3 22:48 ssl-client.xml.example
-rw-r--r-- 1 root root 2251 Sep  3 22:48 ssl-server.xml.example

I think the suggested workaround will work but, same needs to done for hadoop_secondary also.

Request the ticket to be re-opened till it is found that the issue is invalid or the issue is fixed.

Cheers,
Subroto Sanyal

from ansible-examples.

mpdehaan avatar mpdehaan commented on May 20, 2024

yup-- I had already replied above that this ticket was closed in error, had thought it was filed on ansible/ansible, and then deleted the errant comment about the close -- but forgot to reopen! Reopened now, thanks!

from ansible-examples.

bennojoy avatar bennojoy commented on May 20, 2024

@subrotosanyal
can you let us know if the provided detail helps to fix the issue, if so i will update the playbook, PR also welcome :)

from ansible-examples.

sebgoa avatar sebgoa commented on May 20, 2024

I am facing this as well, the fix (mode=0644) does not seem to help. I am using ansible 1.5 and targeting hosts with centos 6.5

from ansible-examples.

bcoca avatar bcoca commented on May 20, 2024

closing as the hadoop example was removed

from ansible-examples.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.