You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@slider.apache.org by Manoj Samel <ma...@gmail.com> on 2015/12/01 02:37:28 UTC
Re: Error : Component is not a member of application - When adding a
new component
Never mind .. found out the issue (metainfo update with comp name was not
packaged)
On Mon, Nov 30, 2015 at 12:47 PM, Manoj Samel <ma...@gmail.com>
wrote:
> 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
>