| { |
| "name" : "BLUR", |
| "label" : "Blur", |
| "description": "Apache Blur Search Service", |
| "version" : "|||BLUR-VERSION|||", |
| "runAs" : { |
| "user" : "blur", |
| "group" : "blur" |
| }, |
| "rolesWithExternalLinks":["BLUR_CONTROLLER","BLUR_SHARD"], |
| "hdfsDirs" : [ |
| { |
| "name" : "CreateBlurTablesDir", |
| "label": "Create Blur Tables Directory", |
| "description" : "Creates the Blur Tables Directory", |
| "directoryDescription": "Location of Blur tables.", |
| "path":"/user/${user}/${blur_cluster_name}/tables", |
| "permissions":"0755" |
| }, |
| { |
| "name" : "CreateBlurCommandsDir", |
| "label": "Create Blur Commands Directory", |
| "description" : "Creates the Blur Commands Directory", |
| "directoryDescription": "Path that Blur will look for installed commands.", |
| "path":"/user/${user}/${blur_cluster_name}/commands", |
| "permissions":"0755" |
| } |
| ], |
| "serviceInit": { |
| "preStartSteps": [ |
| {"commandName":"CreateBlurTablesDir"}, |
| {"commandName":"CreateBlurCommandsDir"} |
| ] |
| }, |
| |
| "parameters": [ |
| |
| { |
| "name":"blur_cluster_name", |
| "label":"Blur Cluster Name", |
| "description": "Name of Blur Cluster", |
| "configName":"blur.cluster.name", |
| "required":"true", |
| "type":"string", |
| "default":"default", |
| "configurableInWizard":true |
| }, |
| { |
| "name":"blur_zookeeper_root", |
| "label":"Zookeeper Root", |
| "description": "Advanced: Root ZK connection to alternate path.", |
| "configName":"blur.zookeeper.root", |
| "required":"false", |
| "type":"string", |
| "default":"", |
| "configurableInWizard":true |
| }, |
| |
| |||General-Server-Properties||| |
| ], |
| |
| "roles" : [ |
| { |
| "name" : "BLUR_CONTROLLER", |
| "label" : "Blur Controller Server", |
| "pluralLabel" : "Blur Controller Servers", |
| "startRunner" : { |
| "program" : "scripts/control.sh", |
| "args" : [ "start-controller" ], |
| "environmentVariables" : { |
| "BLUR_ZK_ROOT": "${blur_zookeeper_root}", |
| "BLUR_DEFAULT_TABLE_PATH": "/user/${user}/${blur_cluster_name}/tables", |
| "BLUR_COMMAND_PATH":"/user/${user}/${blur_cluster_name}/commands", |
| "BLUR_CLUSTER_NAME":"${blur_cluster_name}", |
| "BLUR_CONTROLLER_JVM_OPTIONS":"-Xmx${blur_controller_jvm_heap} -Xms${blur_controller_jvm_heap} ${blur_controller_jvm_options}" |
| } |
| }, |
| "externalLink" : { |
| "name":"blur_controller_ui", |
| "label":"Blur Controller Status UI", |
| "url":"http://${host}:${blur_gui_controller_port}" |
| }, |
| "logging": { |
| "dir":"/var/log/blur", |
| "filename": "blur-controller-server-${host}.log", |
| "loggingType":"log4j" |
| }, |
| "configWriter" : { |
| "generators" : [ |
| { |
| "filename" : "blur-site.properties", |
| "configFormat" : "properties", |
| "excludedParams": ["blur_controller_jvm_options"] |
| } |
| ] |
| }, |
| "parameters": [ |
| { |
| "name":"blur_controller_jvm_options", |
| "label":"JVM Options for Controllers", |
| "description": "JAVA JVM OPTIONS for the controller servers, jvm tuning parameters are placed here.", |
| "configName":"blur.controller.jvm.options", |
| "required":"false", |
| "type":"string", |
| "default":"-Djava.net.preferIPv4Stack=true", |
| "configurableInWizard":true |
| }, |
| { |
| "name" : "blur_controller_jvm_heap", |
| "configName": "blur.controller.jvm.heap", |
| "label" : "Total Java Heap Sizes of Controller in Bytes", |
| "description" : "Memory available to the Controller. Passed to Java -Xmx. Measured in bytes.", |
| "required" : "true", |
| "type" : "memory", |
| "unit" : "bytes", |
| "min" : 2147483648, |
| "default" : 8589934592, |
| "scaleFactor" : 1.3, |
| "autoConfigShare" : 100 |
| } |
| , |
| |||Controller-Server-Properties||| |
| ] |
| }, |
| { |
| "name" : "BLUR_SHARD", |
| "label" : "Blur Shard Server", |
| "pluralLabel" : "Blur Shard Servers", |
| "startRunner" : { |
| "program" : "scripts/control.sh", |
| "args" : [ "start-shard" ], |
| "environmentVariables" : { |
| "BLUR_ZK_ROOT": "${blur_zookeeper_root}", |
| "BLUR_DEFAULT_TABLE_PATH": "/user/${user}/${blur_cluster_name}/tables", |
| "BLUR_COMMAND_PATH":"/user/${user}/${blur_cluster_name}/commands", |
| "BLUR_CLUSTER_NAME":"${blur_cluster_name}", |
| "BLUR_SHARD_JVM_OPTIONS":"-Xmx${blur_shard_jvm_heap} -Xms${blur_shard_jvm_heap} ${blur_shard_jvm_options}" |
| } |
| }, |
| "additionalExternalLinks" : [{ |
| "name":"blur_shard_ui", |
| "label":"Blur Shard Status UI", |
| "url":"http://${host}:${blur_gui_shard_port}" |
| }], |
| "logging": { |
| "dir":"/var/log/blur", |
| "filename": "blur-shard-server-${host}.log", |
| "loggingType":"log4j" |
| }, |
| "configWriter" : { |
| "generators" : [ |
| { |
| "filename" : "blur-site.properties", |
| "configFormat" : "properties", |
| "excludedParams": ["blur_shard_jvm_options"] |
| } |
| ] |
| }, |
| "parameters": [ |
| { |
| "name":"blur_shard_jvm_options", |
| "label":"JVM OPTIONS for Shards", |
| "description": "JAVA JVM OPTIONS for the shard servers, jvm tuning parameters are placed here.", |
| "configName":"blur.shard.jvm.options", |
| "required":"false", |
| "type":"string", |
| "default":"-Djava.net.preferIPv4Stack=true", |
| "configurableInWizard":true |
| }, |
| { |
| "name" : "blur_shard_jvm_heap", |
| "configName": "blur.shard.jvm.heap", |
| "label" : "Total Java Heap Sizes of Shard in Bytes", |
| "description" : "Memory available to the Shard. Passed to Java -Xmx. Measured in bytes.", |
| "required" : "true", |
| "type" : "memory", |
| "unit" : "bytes", |
| "min" : 2147483648, |
| "default" : 8589934592, |
| "scaleFactor" : 1.3, |
| "autoConfigShare" : 60 |
| }, |
| |
| { |
| "name" : "blur_shard_block_cache_total_size", |
| "configName": "blur.shard.block.cache.total.size", |
| "label" : "Total Block Cache Sizes of Shard in Bytes", |
| "description" : "Block Cache Memory available to the Shard. Measured in bytes.", |
| "required" : "true", |
| "type" : "memory", |
| "unit" : "bytes", |
| "min" : 134217728, |
| "default" : 8589934592, |
| "scaleFactor" : 1.3, |
| "autoConfigShare" : 40 |
| }, |
| |
| |||Shard-Server-Properties||| |
| ] |
| } |
| ], |
| "parcel" : { |
| "requiredTags": ["blurcontroller"], |
| "optionalTags": ["blurcontroller", "blurshard", "blurconsole"] |
| }, |
| "serviceDependencies" : [ |
| {"name":"HDFS", "required":"true"}, |
| {"name":"ZOOKEEPER", "required":"true"} |
| ] |
| } |