Skip to content

Commit

Permalink
remove nginx
Browse files Browse the repository at this point in the history
  • Loading branch information
yg000 committed May 30, 2019
1 parent c3044b1 commit 9f7e7c6
Show file tree
Hide file tree
Showing 10 changed files with 20 additions and 153 deletions.
Binary file added .DS_Store
Binary file not shown.
2 changes: 1 addition & 1 deletion configuration/kylin.xml
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ kylin.engine.spark.max-partition=5000
</property>
<property>
<name>download.location</name>
<value>http://10.0.83.123/HDP/2.x/updates/2.6.1.0/kylin/apache-kylin-2.1.0-bin-hbase1x.tar.gz</value>
<value>http://repo.packone/hdp/kylin/apache-kylin.tar</value>
<description>Location to download gstore</description>
</property>

Expand Down
87 changes: 0 additions & 87 deletions configuration/nginx.xml

This file was deleted.

18 changes: 2 additions & 16 deletions metainfo.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
<displayName>Kylin All</displayName>
<category>MASTER</category>
<cardinality>1</cardinality>
<versionAdvertised>true</versionAdvertised>
<commandScript>
<script>scripts/kylin_master.py</script>
<scriptType>PYTHON</scriptType>
Expand All @@ -25,31 +24,18 @@
<displayName>Kylin Query</displayName>
<category>SLAVE</category>
<cardinality>0+</cardinality>
<versionAdvertised>true</versionAdvertised>
<commandScript>
<script>scripts/kylin_query.py</script>
<scriptType>PYTHON</scriptType>
<timeout>600</timeout>
</commandScript>
</component>
<component>
<name>NGINX_SERVER</name>
<displayName>Nginx Server</displayName>
<category>MASTER</category>
<cardinality>1</cardinality>
<versionAdvertised>true</versionAdvertised>
<commandScript>
<script>scripts/nginx.py</script>
<scriptType>PYTHON</scriptType>
<timeout>600</timeout>
</commandScript>
</component>
</components>

<requiredServices>
<requiredServices>
<service>HDFS</service>
<service>HIVE</service>
<service>HBASE</service>
<service>HBASE</service>
</requiredServices>

<osSpecifics>
Expand Down
Binary file added package/.DS_Store
Binary file not shown.
7 changes: 6 additions & 1 deletion package/scripts/kylin_master.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,12 @@ def start(self, env):
import params
env.set_params(params)
self.configure(env)
Execute(format(". {tmp_dir}/kylin_env.rc;{install_dir}/latest/bin/kylin.sh start;cp -rf {install_dir}/latest/pid /var/run/kylin.pid"))
Execute(format(". {tmp_dir}/kylin_env.rc;{install_dir}/latest/bin/kylin.sh start"))
sleep(5)
Execute("lsof -i:7070 | grep -v grep | grep \"java\" | awk '{print $2}' >"+format("{install_dir}/latest/pid"))
Execute(format("rm -rf /var/run/kylin.pid;cp {install_dir}/latest/pid /var/run/kylin.pid"))




def stop(self, env):
Expand Down
5 changes: 4 additions & 1 deletion package/scripts/kylin_query.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,10 @@ def start(self, env):
import params
env.set_params(params)
self.configure(env)
Execute(format(". {tmp_dir}/kylin_env.rc;{install_dir}/latest/bin/kylin.sh start;cp -rf {install_dir}/latest/pid /var/run/kylin.pid"))
Execute(format(". {tmp_dir}/kylin_env.rc;{install_dir}/latest/bin/kylin.sh start"))
sleep(5)
Execute("lsof -i:7070 | grep -v grep | grep \"java\" | awk '{print $2}' >"+format("{install_dir}/latest/pid"))
Execute(format("rm -rf /var/run/kylin.pid;cp {install_dir}/latest/pid /var/run/kylin.pid"))


def stop(self, env):
Expand Down
40 changes: 0 additions & 40 deletions package/scripts/nginx.py

This file was deleted.

2 changes: 1 addition & 1 deletion package/templates/env.rc.j2
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export KYLIN_HOME={{install_dir}}/latest
export HIVE_CONF=/usr/hdp/current/hive-client/conf
export HCAT_HOME=/usr/hdp/{{hdp_version}}/hive-hcatalog
export JAVA_HOME='/usr/jdk64/'`ls /usr/jdk64 | xargs echo`
export JAVA_HOME='/usr/jdk64/default'
12 changes: 6 additions & 6 deletions quicklinks/quicklinks.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,15 @@
"name": "kylin_ui",
"label": "KYLIN UI",
"requires_user_name": "false",
"component_name": "NGINX_SERVER",
"component_name": "KYLIN_ALL",
"url":"%@://%@:%@/kylin",
"port":{
"http_property": "nginx_port",
"http_default_port": "80",
"https_property": "nginx_port",
"https_default_port": "80",
"http_property": "7070",
"http_default_port": "7070",
"https_property": "7070",
"https_default_port": "7070",
"regex": "^(\\d+)$",
"site": "nginx"
"site": "kylin"
}
}
]
Expand Down

0 comments on commit 9f7e7c6

Please sign in to comment.