You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ambari.apache.org by Anisha Agarwal <aa...@ddn.com> on 2013/08/16 23:34:40 UTC
Specify path to config files
Hello all,
I am trying to deploy Ambari using the APIs.
If I have custom Hadoop configuration xml files (core-site.xml/hdfs-site.xml etc), is there a way to specify the path to these files using the APIs?
Thanks,
Anisha
Re: Specify path to config files
Posted by Yusaku Sako <yu...@hortonworks.com>.
Anisha,
Currently Ambari always deploys the config files to default locations
and cannot specify where they will be deployed.
Yusaku
On Fri, Aug 16, 2013 at 2:34 PM, Anisha Agarwal <aa...@ddn.com> wrote:
> Hello all,
>
> I am trying to deploy Ambari using the APIs.
> If I have custom Hadoop configuration xml files (core-site.xml/hdfs-site.xml etc), is there a way to specify the path to these files using the APIs?
>
> Thanks,
> Anisha
--
CONFIDENTIALITY NOTICE
NOTICE: This message is intended for the use of the individual or entity to
which it is addressed and may contain information that is confidential,
privileged and exempt from disclosure under applicable law. If the reader
of this message is not the intended recipient, you are hereby notified that
any printing, copying, dissemination, distribution, disclosure or
forwarding of this communication is strictly prohibited. If you have
received this communication in error, please contact the sender immediately
and delete it from your system. Thank You.
Re: Specify path to config files
Posted by Yusaku Sako <yu...@hortonworks.com>.
Anisha,
Currently Ambari always deploys the config files to default locations
and cannot specify where they will be deployed.
Yusaku
On Fri, Aug 16, 2013 at 2:34 PM, Anisha Agarwal <aa...@ddn.com> wrote:
> Hello all,
>
> I am trying to deploy Ambari using the APIs.
> If I have custom Hadoop configuration xml files (core-site.xml/hdfs-site.xml etc), is there a way to specify the path to these files using the APIs?
>
> Thanks,
> Anisha
--
CONFIDENTIALITY NOTICE
NOTICE: This message is intended for the use of the individual or entity to
which it is addressed and may contain information that is confidential,
privileged and exempt from disclosure under applicable law. If the reader
of this message is not the intended recipient, you are hereby notified that
any printing, copying, dissemination, distribution, disclosure or
forwarding of this communication is strictly prohibited. If you have
received this communication in error, please contact the sender immediately
and delete it from your system. Thank You.
Re: Specify path to config files
Posted by Sumit Mohanty <sm...@hortonworks.com>.
The Ambari API does not take path to config files as input. You need to
provide the content of *-site.xml file as property value pairs.
E.g. (assuming you are using version 1.2.4.9)
curl -i -X PUT -u admin:admin -d '{"Clusters": {"desired_config": {"type":
"core-site", "tag": "version2", "properties" : { "fs.default.name" :
"localhost:8020",...}}}}' http://localhost:8080/api/v1/clusters/c1
Thanks
Sumit
On 8/16/13 2:34 PM, "Anisha Agarwal" <aa...@ddn.com> wrote:
>Hello all,
>
>I am trying to deploy Ambari using the APIs.
>If I have custom Hadoop configuration xml files
>(core-site.xml/hdfs-site.xml etc), is there a way to specify the path to
>these files using the APIs?
>
>Thanks,
>Anisha
--
CONFIDENTIALITY NOTICE
NOTICE: This message is intended for the use of the individual or entity to
which it is addressed and may contain information that is confidential,
privileged and exempt from disclosure under applicable law. If the reader
of this message is not the intended recipient, you are hereby notified that
any printing, copying, dissemination, distribution, disclosure or
forwarding of this communication is strictly prohibited. If you have
received this communication in error, please contact the sender immediately
and delete it from your system. Thank You.
Re: Specify path to config files
Posted by Sumit Mohanty <sm...@hortonworks.com>.
The Ambari API does not take path to config files as input. You need to
provide the content of *-site.xml file as property value pairs.
E.g. (assuming you are using version 1.2.4.9)
curl -i -X PUT -u admin:admin -d '{"Clusters": {"desired_config": {"type":
"core-site", "tag": "version2", "properties" : { "fs.default.name" :
"localhost:8020",...}}}}' http://localhost:8080/api/v1/clusters/c1
Thanks
Sumit
On 8/16/13 2:34 PM, "Anisha Agarwal" <aa...@ddn.com> wrote:
>Hello all,
>
>I am trying to deploy Ambari using the APIs.
>If I have custom Hadoop configuration xml files
>(core-site.xml/hdfs-site.xml etc), is there a way to specify the path to
>these files using the APIs?
>
>Thanks,
>Anisha
--
CONFIDENTIALITY NOTICE
NOTICE: This message is intended for the use of the individual or entity to
which it is addressed and may contain information that is confidential,
privileged and exempt from disclosure under applicable law. If the reader
of this message is not the intended recipient, you are hereby notified that
any printing, copying, dissemination, distribution, disclosure or
forwarding of this communication is strictly prohibited. If you have
received this communication in error, please contact the sender immediately
and delete it from your system. Thank You.