ambari-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Srimanth Gunturi (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (AMBARI-5903) Implement POST method on the apps endpoint - to create new apps
Date Tue, 27 May 2014 20:17:02 GMT

     [ https://issues.apache.org/jira/browse/AMBARI-5903?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Srimanth Gunturi updated AMBARI-5903:
-------------------------------------

    Attachment: AMBARI-5903.patch

Review at https://reviews.apache.org/r/21939/

> Implement POST method on the apps endpoint - to create new apps
> ---------------------------------------------------------------
>
>                 Key: AMBARI-5903
>                 URL: https://issues.apache.org/jira/browse/AMBARI-5903
>             Project: Ambari
>          Issue Type: Task
>          Components: controller
>    Affects Versions: 1.6.1
>         Environment: 
>            Reporter: Srimanth Gunturi
>            Assignee: Srimanth Gunturi
>             Fix For: 1.6.1
>
>         Attachments: AMBARI-5903.patch
>
>
> The {{/api/v1/apps}} endpoint should allow the POST method to create new apps. The request
of the body should look like below.
> {code}
> {
>   "id" : "HBASE",
>   "name": "hoya24",
>   "typeComponents" : [
>     {
>       "id" : "HBASE_MASTER",
>       "name" : "HBASE_MASTER",
>       "category" : "MASTER",
>       "displayName" : "HBASE_MASTER",
>       "priority" : 1,
>       "instanceCount" : 1,
>       "maxInstanceCount" : 2,
>       "yarnMemory" : 1024,
>       "yarnCpuCores" : 1
>     },
>     {
>       "id" : "HBASE_REGIONSERVER",
>       "name" : "HBASE_REGIONSERVER",
>       "category" : "SLAVE",
>       "displayName" : "HBASE_REGIONSERVER",
>       "priority" : 2,
>       "instanceCount" : 1,
>       "maxInstanceCount" : 0,
>       "yarnMemory" : 1024,
>       "yarnCpuCores" : 1
>     },
>     {
>       "id" : "HBASE_CLIENT",
>       "name" : "HBASE_CLIENT",
>       "category" : "CLIENT",
>       "displayName" : "HBASE_CLIENT",
>       "priority" : 3,
>       "instanceCount" : 0,
>       "maxInstanceCount" : 0,
>       "yarnMemory" : 1024,
>       "yarnCpuCores" : 1
>     }
>   ],
>   "typeName" : "HBASE",
>   "typeVersion" : "0.96.0.2.1.1",
>   "typeConfigs" : {
>     "agent.conf" : "/slider/agent/conf/agent.ini",
>     "application.def" : "/slider/hbase_v096.zip",
>     "config_types" : "core-site,hdfs-site,hbase-site",
>     "java_home" : "/usr/jdk64/jdk1.7.0_45",
>     "package_list" : "files/hbase-0.96.1-hadoop2-bin.tar.gz",
>     "site.core-site.fs.defaultFS" : "${NN_URI}",
>     "site.global.app_install_dir" : "${AGENT_WORK_ROOT}/app/install",
>     "site.global.app_log_dir" : "${AGENT_LOG_ROOT}/app/log",
>     "site.global.app_pid_dir" : "${AGENT_WORK_ROOT}/app/run",
>     "site.global.app_root" : "${AGENT_WORK_ROOT}/app/install/hbase-0.96.1-hadoop2",
>     "site.global.app_user" : "yarn",
>     "site.global.ganglia_server_host" : "${NN_HOST}",
>     "site.global.ganglia_server_id" : "Application1",
>     "site.global.ganglia_server_port" : "8667",
>     "site.global.hbase_master_heapsize" : "1024m",
>     "site.global.hbase_regionserver_heapsize" : "1024m",
>     "site.global.security_enabled" : "false",
>     "site.global.user_group" : "hadoop",
>     "site.hbase-site.hbase.client.keyvalue.maxsize" : "10485760",
>     "site.hbase-site.hbase.client.scanner.caching" : "100",
>     "site.hbase-site.hbase.cluster.distributed" : "true",
>     "site.hbase-site.hbase.defaults.for.version.skip" : "true",
>     "site.hbase-site.hbase.hregion.majorcompaction" : "86400000",
>     "site.hbase-site.hbase.hregion.max.filesize" : "10737418240",
>     "site.hbase-site.hbase.hregion.memstore.block.multiplier" : "2",
>     "site.hbase-site.hbase.hregion.memstore.flush.size" : "134217728",
>     "site.hbase-site.hbase.hregion.memstore.mslab.enabled" : "true",
>     "site.hbase-site.hbase.hstore.blockingStoreFiles" : "10",
>     "site.hbase-site.hbase.hstore.compactionThreshold" : "3",
>     "site.hbase-site.hbase.hstore.flush.retries.number" : "120",
>     "site.hbase-site.hbase.local.dir" : "${hbase.tmp.dir}/local",
>     "site.hbase-site.hbase.master.info.port" : "${HBASE_MASTER.ALLOCATED_PORT}",
>     "site.hbase-site.hbase.regionserver.global.memstore.lowerLimit" : "0.38",
>     "site.hbase-site.hbase.regionserver.global.memstore.upperLimit" : "0.4",
>     "site.hbase-site.hbase.regionserver.handler.count" : "60",
>     "site.hbase-site.hbase.regionserver.info.port" : "0",
>     "site.hbase-site.hbase.regionserver.port" : "0",
>     "site.hbase-site.hbase.rootdir" : "${NN_URI}/apps/hbase/data",
>     "site.hbase-site.hbase.security.authentication" : "simple",
>     "site.hbase-site.hbase.security.authorization" : "false",
>     "site.hbase-site.hbase.stagingdir" : "${NN_URI}/apps/hbase/staging",
>     "site.hbase-site.hbase.superuser" : "yarn",
>     "site.hbase-site.hbase.tmp.dir" : "${AGENT_WORK_ROOT}/work/app/tmp",
>     "site.hbase-site.hbase.zookeeper.property.clientPort" : "2181",
>     "site.hbase-site.hbase.zookeeper.quorum" : "${ZK_HOST}",
>     "site.hbase-site.hbase.zookeeper.useMulti" : "true",
>     "site.hbase-site.hfile.block.cache.size" : "0.40",
>     "site.hbase-site.zookeeper.session.timeout" : "30000",
>     "site.hbase-site.zookeeper.znode.parent" : "/hbase-unsecure",
>     "site.hdfs-site.dfs.namenode.http-address" : "${NN_HOST}:50070",
>     "site.hdfs-site.dfs.namenode.https-address" : "${NN_HOST}:50470"
>   }
> }{code}
> Return codes:
> 201 - Created: App successfully created



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message