You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ambari.apache.org by "Oleg Nechiporenko (JIRA)" <ji...@apache.org> on 2014/05/27 13:40:01 UTC

[jira] [Updated] (AMBARI-5898) Slider's new app wizard should make POST call to create app

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

Oleg Nechiporenko updated AMBARI-5898:
--------------------------------------

    Attachment: AMBARI-5898.patch

> Slider's new app wizard should make POST call to create app
> -----------------------------------------------------------
>
>                 Key: AMBARI-5898
>                 URL: https://issues.apache.org/jira/browse/AMBARI-5898
>             Project: Ambari
>          Issue Type: Bug
>          Components: client
>    Affects Versions: 1.6.1
>            Reporter: Oleg Nechiporenko
>            Assignee: Oleg Nechiporenko
>             Fix For: 1.6.1
>
>         Attachments: AMBARI-5898.patch
>
>
> In the new app wizard when we hit Finish, a POST call should be made to the {{http://c6401:8080/api/v1/views/SLIDER/versions/1.0.0/instances/SLIDER_1/apps}} endpoint with the following content (mostly taken from app-type response)
> {code}
> {
>   "name": "Hoya 12"
>   "typeName" : "HBASE",
>   "typeVersion" : "0.96.0.2.1.1",
>   "typeComponents" : [
>     {
>       "id" : "HBASE_MASTER",
>       "priority" : 1,
>       "instanceCount" : 1,
>       "yarnMemory" : 1024,
>       "yarnCpuCores" : 1
>     },
>     {
>       "id" : "HBASE_REGIONSERVER",
>       "priority" : 2,
>       "instanceCount" : 1,
>       "yarnMemory" : 1024,
>       "yarnCpuCores" : 1
>     },
>     {
>       "id" : "HBASE_CLIENT",
>       "priority" : 0,
>       "instanceCount" : 0,
>       "yarnMemory" : 1024,
>       "yarnCpuCores" : 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}



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