Hi Sumit,
I have recently upgraded to Ambari 1.7 to 2.1.2-377 and HDP 2.2 to 2.3
I ran
http://mstd01.corp.com:8080/api/v1/clusters/BDP2_DEV/configurations?type=hdfs-site
output
of this url is attached.
There is saw it still displaying "stack_id" : "HDP-2.2", but my cluster
upgrade to HDP 2.3 and i can able to find my stack version in* Admin->Stack
and Version* tab.
Please suggest how can I proceed.
Thanks,
Shaik
On 3 November 2015 at 11:20, Sumit Mohanty <[email protected]> wrote:
> Sorry, my bad. I meant to ask what "get" returns?
>
>
> /var/lib/ambari-server/resources/scripts/configs.sh -u admin -p admin@DEV
> *get* mstd01.corp.com BDP2_DEV hdfs-site
>
>
> Similarly, what does
> http://mstd01.corp.com:8080/api/v1/clusters/BDP2_DEV/configurations?type=hdfs-site
> return?
>
>
> Also, I think the delete may have some issue - what version of Ambari are
> you using/?
>
>
> This is what I see ...
>
>
> [root@c6402 vagrant]# /var/lib/ambari-server/resources/scripts/configs.sh
> -u admin -p admin delete localhost c1 hdfs-site dfs.namenode.rpc-address
> USERID=admin
> PASSWORD=admin
> ########## Performing 'delete' dfs.namenode.rpc-address: on
> (Site:hdfs-site, Tag:version1)
> ########## Config found. Skipping origin value
> ########## PUTting json into: doSet_version1446520420271646783.json
> {
> "resources" : [
> {
> "href" : "
> http://localhost:8080/api/v1/clusters/c1/configurations/service_config_versions?service_name=HDFS&service_config_version=2
> ",
> "configurations" : [
> {
> "clusterName" : "c1",
> "stackId" : {
> "stackName" : "HDP",
> "stackVersion" : "2.3",
> "stackId" : "HDP-2.3"
> },
> "type" : "hdfs-site",
> "versionTag" : "version1446520420271646783",
> "version" : 2,
> "serviceConfigVersions" : null,
> "configs" : {
> "dfs.replication" : "3",
> "dfs.namenode.audit.log.async" : "true",
> ...
>
>
> ------------------------------
> *From:* Shaik M <[email protected]>
> *Sent:* Monday, November 02, 2015 6:05 PM
>
> *To:* [email protected]
> *Subject:* Re: Rebalance HDFS - Issue
>
> I have restart HDFS after executing this. The output of this command:
>
> [root@mstd01~]# /var/lib/ambari-server/resources/scripts/configs.sh -u
> admin -p admin@DEV delete mstd01.corp.com BDP2_DEV hdfs-site
> “dfs.namenode.rpc-address”
> USERID=admin
> PASSWORD=admin@DEV
> ########## Performing 'delete' “dfs.namenode.rpc-address”: on
> (Site:hdfs-site, Tag:version1446466158434)
> ########## PUTting json into: doSet_version1446466579436571830.json
> ########## NEW Site:hdfs-site, Tag:version1446466158434
>
> But still that property is exists in Ambari->HDFS->Config.
>
> On 2 November 2015 at 21:01, Sumit Mohanty <[email protected]>
> wrote:
>
>> What do you get when you use this -
>>
>>
>> /var/lib/ambari-server/resources/scripts/configs.sh -u admin -p admin@DEV
>> delete mstd01.corp.com BDP2_DEV hdfs-site
>>
>>
>> Did you restart after the delete?
>> ------------------------------
>> *From:* Shaik M <[email protected]>
>> *Sent:* Monday, November 02, 2015 4:23 AM
>> *To:* [email protected]
>> *Subject:* Re: Rebalance HDFS - Issue
>>
>> Hi Sumit,
>>
>> Thank you for your assistance.
>>
>> I have tried to remove "dfs.namenode.rpc-address" property using below
>> command, it went successfully, but still that property exists.
>>
>> [root@mstd01~]# sudo /var/lib/ambari-server/resources/scripts/configs.sh
>> -u admin -p admin@DEV delete mstd01.corp.com BDP2_DEV hdfs-site
>> “dfs.namenode.rpc-address”
>> [sudo] password for root:
>> USERID=admin
>> PASSWORD=admin@DEV
>> ########## Performing 'delete' “dfs.namenode.rpc-address”: on
>> (Site:hdfs-site, Tag:version1446466158434)
>> ########## PUTting json into: doSet_version1446466579436571830.json
>> ########## NEW Site:hdfs-site, Tag:version1446466158434
>>
>> Please help me to fix this issue.
>>
>> https://issues.apache.org/jira/browse/AMBARI-13373
>>
>> Thanks,
>> Shaik
>>
>>
>> On 2 November 2015 at 19:04, Sumit Mohanty <[email protected]>
>> wrote:
>>
>>> Likely "dfs.namenode.rpc-address" in hdfs-site has a wrong value. If it
>>> is, you can delete it - see
>>> https://cwiki.apache.org/confluence/display/AMBARI/Modify+configurations
>>> (section Edit Configurations with configs.sh)
>>>
>>>
>>> ------------------------------
>>> *From:* Shaik M <[email protected]>
>>> *Sent:* Sunday, November 01, 2015 8:17 PM
>>> *To:* [email protected]
>>> *Subject:* Rebalance HDFS - Issue
>>>
>>> Hi,
>>>
>>> I am trying to run HDFS balancer from Ambari 2.1.2 with HDP 2.3.2, it's
>>> failing with following exception.
>>>
>>> 15/11/02 03:07:00 INFO block.BlockTokenSecretManager: Setting block keys
>>> 15/11/02 03:07:00 INFO balancer.KeyManager: Update block keys every 2hrs,
>>> 30mins, 0secjava.io.IOException: Another Balancer is running.. Exiting ...
>>> Nov 2, 2015 3:07:00 AM Balancing took 1.935 seconds
>>>
>>> I have verified respective Hadoop NN, there is no balancer on NameNode.
>>>
>>> Could you please help use to fix this issue.
>>>
>>>
>>> Thanks,
>>>
>>> Shaik M
>>>
>>>
>>
>
{
"href" :
"http://mstd01.corp.com:8080/api/v1/clusters/BDP2_DEV/configurations?type=hdfs-site",
"items" : [
{
"href" :
"http://mstd01.corp.com:8080/api/v1/clusters/BDP2_DEV/configurations?type=hdfs-site&tag=version1",
"tag" : "version1",
"type" : "hdfs-site",
"version" : 1,
"Config" : {
"cluster_name" : "BDP2_DEV",
"stack_id" : "HDP-2.2"
}
},
{
"href" :
"http://mstd01.corp.com:8080/api/v1/clusters/BDP2_DEV/configurations?type=hdfs-site&tag=version1423104971475",
"tag" : "version1423104971475",
"type" : "hdfs-site",
"version" : 2,
"Config" : {
"cluster_name" : "BDP2_DEV",
"stack_id" : "HDP-2.2"
}
},
{
"href" :
"http://mstd01.corp.com:8080/api/v1/clusters/BDP2_DEV/configurations?type=hdfs-site&tag=version1423540606089",
"tag" : "version1423540606089",
"type" : "hdfs-site",
"version" : 3,
"Config" : {
"cluster_name" : "BDP2_DEV",
"stack_id" : "HDP-2.2"
}
},
{
"href" :
"http://mstd01.corp.com:8080/api/v1/clusters/BDP2_DEV/configurations?type=hdfs-site&tag=version1432457983589",
"tag" : "version1432457983589",
"type" : "hdfs-site",
"version" : 4,
"Config" : {
"cluster_name" : "BDP2_DEV",
"stack_id" : "HDP-2.2"
}
},
{
"href" :
"http://mstd01.corp.com:8080/api/v1/clusters/BDP2_DEV/configurations?type=hdfs-site&tag=version1432461111713",
"tag" : "version1432461111713",
"type" : "hdfs-site",
"version" : 5,
"Config" : {
"cluster_name" : "BDP2_DEV",
"stack_id" : "HDP-2.2"
}
},
{
"href" :
"http://mstd01.corp.com:8080/api/v1/clusters/BDP2_DEV/configurations?type=hdfs-site&tag=version1432551760902",
"tag" : "version1432551760902",
"type" : "hdfs-site",
"version" : 6,
"Config" : {
"cluster_name" : "BDP2_DEV",
"stack_id" : "HDP-2.2"
}
},
{
"href" :
"http://mstd01.corp.com:8080/api/v1/clusters/BDP2_DEV/configurations?type=hdfs-site&tag=version1444184888519",
"tag" : "version1444184888519",
"type" : "hdfs-site",
"version" : 7,
"Config" : {
"cluster_name" : "BDP2_DEV",
"stack_id" : "HDP-2.2"
}
},
{
"href" :
"http://mstd01.corp.com:8080/api/v1/clusters/BDP2_DEV/configurations?type=hdfs-site&tag=version1444188538383",
"tag" : "version1444188538383",
"type" : "hdfs-site",
"version" : 8,
"Config" : {
"cluster_name" : "BDP2_DEV",
"stack_id" : "HDP-2.2"
}
},
{
"href" :
"http://mstd01.corp.com:8080/api/v1/clusters/BDP2_DEV/configurations?type=hdfs-site&tag=version1444188540194",
"tag" : "version1444188540194",
"type" : "hdfs-site",
"version" : 9,
"Config" : {
"cluster_name" : "BDP2_DEV",
"stack_id" : "HDP-2.2"
}
},
{
"href" :
"http://mstd01.corp.com:8080/api/v1/clusters/BDP2_DEV/configurations?type=hdfs-site&tag=version1444212561892",
"tag" : "version1444212561892",
"type" : "hdfs-site",
"version" : 10,
"Config" : {
"cluster_name" : "BDP2_DEV",
"stack_id" : "HDP-2.3"
}
},
{
"href" :
"http://mstd01.corp.com:8080/api/v1/clusters/BDP2_DEV/configurations?type=hdfs-site&tag=version1444280037055",
"tag" : "version1444280037055",
"type" : "hdfs-site",
"version" : 11,
"Config" : {
"cluster_name" : "BDP2_DEV",
"stack_id" : "HDP-2.3"
}
},
{
"href" :
"http://mstd01.corp.com:8080/api/v1/clusters/BDP2_DEV/configurations?type=hdfs-site&tag=version1446465224589",
"tag" : "version1446465224589",
"type" : "hdfs-site",
"version" : 12,
"Config" : {
"cluster_name" : "BDP2_DEV",
"stack_id" : "HDP-2.3"
}
},
{
"href" :
"http://mstd01.corp.com:8080/api/v1/clusters/BDP2_DEV/configurations?type=hdfs-site&tag=version1446465485645",
"tag" : "version1446465485645",
"type" : "hdfs-site",
"version" : 13,
"Config" : {
"cluster_name" : "BDP2_DEV",
"stack_id" : "HDP-2.3"
}
},
{
"href" :
"http://mstd01.corp.com:8080/api/v1/clusters/BDP2_DEV/configurations?type=hdfs-site&tag=version1446466158434",
"tag" : "version1446466158434",
"type" : "hdfs-site",
"version" : 14,
"Config" : {
"cluster_name" : "BDP2_DEV",
"stack_id" : "HDP-2.3"
}
}
]
}