You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-issues@hadoop.apache.org by "Arpit Gupta (Created) (JIRA)" <ji...@apache.org> on 2011/11/21 23:39:42 UTC
[jira] [Created] (HADOOP-7849) hadoop rpm overwrites the existing
/etc/hadoop/hadoop-env.sh
hadoop rpm overwrites the existing /etc/hadoop/hadoop-env.sh
------------------------------------------------------------
Key: HADOOP-7849
URL: https://issues.apache.org/jira/browse/HADOOP-7849
Project: Hadoop Common
Issue Type: Bug
Affects Versions: 0.20.205.0
Reporter: Arpit Gupta
Assignee: Giridharan Kesavan
The following steps were used to deploy
1. Create /etc/hadoop dir
2. create a file hadoop-env.sh in the above dir
3. install the hadoop rpm (rpm -ivh hadoop-0.20.205.0-1.amd64.rpm)
The following console output is displayed
Preparing... ########################################### [100%]
1:hadoop warning: /etc/hadoop/hadoop-env.sh created as /etc/hadoop/hadoop-env.sh.rpmnew
########################################### [100%]
After the install open up the /etc/hadoop/hadoop-env.sh and notice that the file has been replaced.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (HADOOP-7849) hadoop rpm overwrites the existing
/etc/hadoop/hadoop-env.sh
Posted by "Giridharan Kesavan (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HADOOP-7849?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13155995#comment-13155995 ]
Giridharan Kesavan commented on HADOOP-7849:
--------------------------------------------
hadoop-env.sh which is already present is supposed to be active and the new hadoop-env.sh installed with the rpm is supposed to be installed as .rpmsave file. From the previous comment I think that is what has happened. In this case the active hadoop-env.sh (old hadoop-env.sh) is updated.
Reason for the updated hadoop-evn.sh is that ; template_generator is getting called as part of the rpm installation which re-generates hadoop-env.sh again.
this is by design.
> hadoop rpm overwrites the existing /etc/hadoop/hadoop-env.sh
> ------------------------------------------------------------
>
> Key: HADOOP-7849
> URL: https://issues.apache.org/jira/browse/HADOOP-7849
> Project: Hadoop Common
> Issue Type: Bug
> Affects Versions: 0.20.205.0
> Reporter: Arpit Gupta
> Assignee: Giridharan Kesavan
>
> The following steps were used to deploy
> 1. Create /etc/hadoop dir
> 2. create a file hadoop-env.sh in the above dir
> 3. install the hadoop rpm (rpm -ivh hadoop-0.20.205.0-1.amd64.rpm)
> The following console output is displayed
> Preparing... ########################################### [100%]
> 1:hadoop warning: /etc/hadoop/hadoop-env.sh created as /etc/hadoop/hadoop-env.sh.rpmnew
> ########################################### [100%]
> After the install open up the /etc/hadoop/hadoop-env.sh and notice that the file has been replaced.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (HADOOP-7849) hadoop rpm overwrites the existing
/etc/hadoop/hadoop-env.sh
Posted by "Arpit Gupta (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HADOOP-7849?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13156001#comment-13156001 ]
Arpit Gupta commented on HADOOP-7849:
-------------------------------------
should it then not update all the other config files in the dir like core-site.xml, hdfs-site.xml etc. Why is the file hadoop-env.sh the only one that gets updated with new data.
> hadoop rpm overwrites the existing /etc/hadoop/hadoop-env.sh
> ------------------------------------------------------------
>
> Key: HADOOP-7849
> URL: https://issues.apache.org/jira/browse/HADOOP-7849
> Project: Hadoop Common
> Issue Type: Bug
> Affects Versions: 0.20.205.0
> Reporter: Arpit Gupta
> Assignee: Giridharan Kesavan
>
> The following steps were used to deploy
> 1. Create /etc/hadoop dir
> 2. create a file hadoop-env.sh in the above dir
> 3. install the hadoop rpm (rpm -ivh hadoop-0.20.205.0-1.amd64.rpm)
> The following console output is displayed
> Preparing... ########################################### [100%]
> 1:hadoop warning: /etc/hadoop/hadoop-env.sh created as /etc/hadoop/hadoop-env.sh.rpmnew
> ########################################### [100%]
> After the install open up the /etc/hadoop/hadoop-env.sh and notice that the file has been replaced.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (HADOOP-7849) hadoop rpm overwrites the existing
/etc/hadoop/hadoop-env.sh
Posted by "Giridharan Kesavan (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HADOOP-7849?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13156252#comment-13156252 ]
Giridharan Kesavan commented on HADOOP-7849:
--------------------------------------------
As I mentioned before its by design. Its only hadoop-env that requires the log dir and pid dir with the right set of ownership and permissions and be added to the default hadoop-env.sh.
> hadoop rpm overwrites the existing /etc/hadoop/hadoop-env.sh
> ------------------------------------------------------------
>
> Key: HADOOP-7849
> URL: https://issues.apache.org/jira/browse/HADOOP-7849
> Project: Hadoop Common
> Issue Type: Bug
> Affects Versions: 0.20.205.0
> Reporter: Arpit Gupta
> Assignee: Giridharan Kesavan
>
> The following steps were used to deploy
> 1. Create /etc/hadoop dir
> 2. create a file hadoop-env.sh in the above dir
> 3. install the hadoop rpm (rpm -ivh hadoop-0.20.205.0-1.amd64.rpm)
> The following console output is displayed
> Preparing... ########################################### [100%]
> 1:hadoop warning: /etc/hadoop/hadoop-env.sh created as /etc/hadoop/hadoop-env.sh.rpmnew
> ########################################### [100%]
> After the install open up the /etc/hadoop/hadoop-env.sh and notice that the file has been replaced.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (HADOOP-7849) hadoop rpm overwrites the existing
/etc/hadoop/hadoop-env.sh
Posted by "Matt Foley (Updated) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HADOOP-7849?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Matt Foley updated HADOOP-7849:
-------------------------------
Target Version/s: 1.1.0 (was: 1.0.0)
> hadoop rpm overwrites the existing /etc/hadoop/hadoop-env.sh
> ------------------------------------------------------------
>
> Key: HADOOP-7849
> URL: https://issues.apache.org/jira/browse/HADOOP-7849
> Project: Hadoop Common
> Issue Type: Bug
> Affects Versions: 0.20.205.0
> Reporter: Arpit Gupta
> Assignee: Giridharan Kesavan
>
> The following steps were used to deploy
> 1. Create /etc/hadoop dir
> 2. create a file hadoop-env.sh in the above dir
> 3. install the hadoop rpm (rpm -ivh hadoop-0.20.205.0-1.amd64.rpm)
> The following console output is displayed
> Preparing... ########################################### [100%]
> 1:hadoop warning: /etc/hadoop/hadoop-env.sh created as /etc/hadoop/hadoop-env.sh.rpmnew
> ########################################### [100%]
> After the install open up the /etc/hadoop/hadoop-env.sh and notice that the file has been replaced.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira