Hi,
I deployed the sample MEMCACHED application using slider without any issue.
Then I tried to add a new component "MEMCACHED_2" by adding it in 3 files
and running "slider upgrade" command
metainfo.xml
<components>
<component>
<name>MEMCACHED</name>
<category>MASTER</category>
<compExports>Servers-host_port</compExports>
<commandScript>
<script>scripts/memcached.py</script>
<scriptType>PYTHON</scriptType>
</commandScript>
</component><component>
<name>MEMCACHED_2</name> <====== NEW Entry
<category>MASTER</category>
<compExports>Servers-host_port</compExports>
<commandScript>
<script>scripts/memcached.py</script>
<scriptType>PYTHON</scriptType>
</commandScript>
</component>
</components>
resources.json
"components" : {
"MEMCACHED" : {
"yarn.component.instances" : "1",
"yarn.memory" : "256",
"yarn.role.priority" : "1"
},
"MEMCACHED_2" : { <====== NEW Entry
"yarn.component.instances" : "1",
"yarn.memory" : "256",
"yarn.role.priority" : "1"
},
"slider-appmaster" : { }
},
appConfig.json
"components" : {
"MEMCACHED" : { },
"MEMCACHED_2" : { }, <====== NEW Entry
"slider-appmaster" : {
...
slider upgrade ms2 --template /xxx/appConfig.json --resources
/xxx/resources.json --queue <queue> --force
It returns error
2015-11-30 20:42:07,015 [main] ERROR main.ServiceLauncher - Component
MEMCACHED_2 is not a member of application.
2015-11-30 20:42:07,017 [main] INFO util.ExitUtil - Exiting with status 77
Any pointers ???
Thanks,
Manoj