[ 
https://issues.apache.org/jira/browse/SLIDER-834?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14483815#comment-14483815
 ] 

thomas liu edited comment on SLIDER-834 at 4/7/15 11:46 PM:
------------------------------------------------------------

How Slider receive the input:
SliderClient will upload the add on package zip file to HDFS, under directories 
for each addon package. Their location on HDFS will be stored in the 
interpreted app config.
SliderAM(AgentProviderService) will localize those package files which will be 
expanded to the application's work root + /addon/definition/ + [add on package 
name]. It will also read metainfo.json/xml for each addon package, and keep 
track of which components in the master package should the addon package be 
applied to.



was (Author: thomas_liu):
How Slider receive the input:
SliderClient will upload the add on package to HDFS, under directories for each 
addon package. Their location on HDFS will be stored in the interpreted app 
config.
SliderAM(AgentProviderService) will localize those package files. It will also 
read metainfo.json/xml for each addon package, and keep track of which 
components in the master package should the addon package be applied to.


> Read addon package configurations in appConfig.json and metainfo.json into 
> AgentProviderService
> -----------------------------------------------------------------------------------------------
>
>                 Key: SLIDER-834
>                 URL: https://issues.apache.org/jira/browse/SLIDER-834
>             Project: Slider
>          Issue Type: Sub-task
>          Components: app-package, client
>            Reporter: thomas liu
>             Fix For: Slider 0.80
>
>
> Example metainfo.xml/json schema:
> <metainfo>
>   <schemaVersion>2.0</schemaVersion>
>   <applicationPackage>
>     <name>PHOENIX</name>
>     <comment>
>       Apache Phoenix is
>     </comment>
>     <version>2.0</version>
>     <type>ADDON-PACKAGE</type>
>     <minHadoopVersion>1.0</minHadoopVersion>
>     
>     <components>
>       <component>
>         <name>HBASE_REST</name>             ----- this add on package should 
> be applied to hbase_rest component
>         <commandScript>
>           <script>scripts/addon_hbase_rest.py</script>      ----- location of 
> the script to be used by Slider in zip file/package
>           <scriptType>PYTHON</scriptType>
>           <timeout>600</timeout>
>         </commandScript>
>       </component>
>       <component>
>         <name>HBASE_MASTER</name>        ----- this add on package should be 
> applied to hbase_master component
>         <commandScript>
>           <script>scripts/addon_hbase_master.py</script> -----location of the 
> script to be used by Slider in zip file/package
>           <scriptType>PYTHON</scriptType>
>         </commandScript>
>       </component>
>     </components>
>   </applicationPackage>
> </metainfo>
> Another example:
> <metainfo>
>   <schemaVersion>2.0</schemaVersion>
>   <applicationPackage>
>     <name>RANGER</name>
>     <comment>
>       Apache RANGER is
>     </comment>
>     <version>2.0</version>
>     <type>ADDON-PACKAGE</type>
>     <minHadoopVersion>1.0</minHadoopVersion>
>     
>     <components>
>       <component>
>         <name>ALL</name>  ----- this add on package should be applied to all 
> components
>         <commandScript>
>           <script>scripts/all.py</script>
>           <scriptType>PYTHON</scriptType>
>           <timeout>600</timeout>
>         </commandScript>
>       </component>
>     </components>
>   </applicationPackage>
> </metainfo>



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to