Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
slapos
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Iliya Manolov
slapos
Commits
7559a94a
Commit
7559a94a
authored
Jun 05, 2015
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
palo: etl working version
parent
96181a62
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
110 additions
and
13 deletions
+110
-13
component/palo_olap/buildout.cfg
component/palo_olap/buildout.cfg
+1
-0
software/palo/instance.cfg.in
software/palo/instance.cfg.in
+18
-10
software/palo/palo.ini.in
software/palo/palo.ini.in
+0
-1
software/palo/server.xml.in
software/palo/server.xml.in
+79
-0
software/palo/software.cfg
software/palo/software.cfg
+12
-2
No files found.
component/palo_olap/buildout.cfg
View file @
7559a94a
...
@@ -25,6 +25,7 @@ recipe = slapos.recipe.build:gitclone
...
@@ -25,6 +25,7 @@ recipe = slapos.recipe.build:gitclone
repository = https://lab.nexedi.cn/jerome/palo_olap.git
repository = https://lab.nexedi.cn/jerome/palo_olap.git
branch = 5.1
branch = 5.1
git-executable = ${git:location}/bin/git
git-executable = ${git:location}/bin/git
develop = true
[palo_olap]
[palo_olap]
recipe = slapos.recipe.cmmi
recipe = slapos.recipe.cmmi
...
...
software/palo/instance.cfg.in
View file @
7559a94a
...
@@ -4,7 +4,6 @@ parts =
...
@@ -4,7 +4,6 @@ parts =
directory
directory
palo_olap
palo_olap
publish-connection-parameter
publish-connection-parameter
todo=
palo_etl
palo_etl
eggs-directory = ${buildout:eggs-directory}
eggs-directory = ${buildout:eggs-directory}
...
@@ -20,7 +19,6 @@ url = $${slap_connection:server_url}
...
@@ -20,7 +19,6 @@ url = $${slap_connection:server_url}
key = $${slap_connection:key_file}
key = $${slap_connection:key_file}
cert = $${slap_connection:cert_file}
cert = $${slap_connection:cert_file}
configuration.name = John Doe
configuration.erp5_url =
configuration.erp5_url =
[palo_olap_parameter]
[palo_olap_parameter]
...
@@ -39,9 +37,13 @@ service = $${:etc}/service
...
@@ -39,9 +37,13 @@ service = $${:etc}/service
promise = $${:etc}/promise/
promise = $${:etc}/promise/
log = $${:var}/log
log = $${:var}/log
[directory_palo_etl]
<= directory
data_directory = $${:var}/palo_olap/
[directory_tomcat]
[directory_tomcat]
<= directory
<= directory
catalina_base = $${:
home}/var
/palo_etl
catalina_base = $${:
var}
/palo_etl
catalina_logs = $${:catalina_base}/logs
catalina_logs = $${:catalina_base}/logs
catalina_temp = $${:catalina_base}/temp
catalina_temp = $${:catalina_base}/temp
catalina_webapps = $${:catalina_base}/webapps
catalina_webapps = $${:catalina_base}/webapps
...
@@ -52,7 +54,6 @@ catalina_conf = $${:catalina_base}/conf
...
@@ -52,7 +54,6 @@ catalina_conf = $${:catalina_base}/conf
[TODO]
[TODO]
todo =
todo =
tunnel
tunnel
patch ipv6
etl
etl
log_rotation
log_rotation
...
@@ -72,20 +73,25 @@ context = import json_module json
...
@@ -72,20 +73,25 @@ context = import json_module json
[palo_olap]
[palo_olap]
recipe = slapos.cookbook:wrapper
recipe = slapos.cookbook:wrapper
command-line = ${palo_olap:location}/usr/bin/palo --data-direct
$${directory:var
} --init-file $${palo_ini:rendered}
command-line = ${palo_olap:location}/usr/bin/palo --data-direct
ory $${directory_palo_etl:data_directory
} --init-file $${palo_ini:rendered}
wrapper-path = $${directory:service}/palo_olap
wrapper-path = $${directory:service}/palo_olap
[tomcat_palo_etl]
recipe = plone.recipe.command
command = echo "needed ?"
[palo_etl]
[palo_etl]
recipe = slapos.cookbook:wrapper
recipe = slapos.cookbook:wrapper
command-line = ${tomcat:location}/bin/catalina.sh run
command-line = ${tomcat:location}/bin/catalina.sh run
wrapper-path = $${directory:service}/palo_etl
wrapper-path = $${directory:service}/palo_etl
environment = JAVA_HOME = ${java:location}
environment = JAVA_HOME = ${java:location}
CATALINA_BASE = $${directory_tomcat:catalina_base}
CATALINA_BASE = $${directory_tomcat:catalina_base}
dependencies = $${palo_etl_server_xml:rendered}
dependencies = $${palo_etl_server_xml:rendered}
$${tomcat_palo_etl:recipe}
[palo_etl_server_xml]
[palo_etl_server_xml]
recipe = slapos.recipe.template:jinja2
recipe = slapos.recipe.template:jinja2
template = ${:_profile_base_location_}/server.xml.in
# XXX template = ${template_server_xml:location}/${template_server_xml:filename}
template = ${template_server_xml:url}
rendered = $${directory_tomcat:catalina_conf}/server.xml
rendered = $${directory_tomcat:catalina_conf}/server.xml
extensions = jinja2.ext.do
extensions = jinja2.ext.do
context = import json_module json
context = import json_module json
...
@@ -94,14 +100,16 @@ context = import json_module json
...
@@ -94,14 +100,16 @@ context = import json_module json
[palo_etl_parameter]
[palo_etl_parameter]
tomcat_port = 8888
tomcat_port = 8888
tomcat_host = $${:ipv
4
}
tomcat_host = $${:ipv
6
}
tomcat_server_port = 800
5
tomcat_server_port = 800
6
ipv4 = $${instance-parameter:ipv4-random}
ipv4 = $${instance-parameter:ipv4-random}
ipv6 = $${instance-parameter:ipv6-random}
ipv6 = $${instance-parameter:ipv6-random}
palo_etl_war = ${palo_etl_download:location}
[publish-connection-parameter]
[publish-connection-parameter]
recipe = slapos.cookbook:publish
recipe = slapos.cookbook:publish
palo_olap_url = $${palo_olap_parameter:ipv4}:$${palo_olap_parameter:palo_olap_port}
palo_olap_url = $${palo_olap_parameter:ipv4}:$${palo_olap_parameter:palo_olap_port}
palo_olap_ipv6_url = [$${palo_olap_parameter:ipv6}]:$${palo_olap_parameter:palo_olap_port}
palo_olap_ipv6_url = [$${palo_olap_parameter:ipv6}]:$${palo_olap_parameter:palo_olap_port}
palo_olap_admin_url = $${palo_olap_parameter:ipv4}:$${palo_olap_parameter:palo_olap_admin_port}
palo_olap_admin_url = $${palo_olap_parameter:ipv4}:$${palo_olap_parameter:palo_olap_admin_port}
palo_etl_url = http://[$${palo_etl_parameter:tomcat_host}]:$${palo_etl_parameter:tomcat_port}/etlserver/services/ETL-Server?wsdl
software/palo/palo.ini.in
View file @
7559a94a
...
@@ -5,7 +5,6 @@ log {{ directory_log }}/palo_olap.log
...
@@ -5,7 +5,6 @@ log {{ directory_log }}/palo_olap.log
verbose debug
verbose debug
{% if erp5_url %}
{% if erp5_url %}
user-login
workerlogin authorization
workerlogin authorization
worker {{ erp5_login_worker_path }} {{ directory_log }}/erp5_login_worker.log {{ erp5_url }}
worker {{ erp5_login_worker_path }} {{ directory_log }}/erp5_login_worker.log {{ erp5_url }}
admin {{ palo_olap_parameter.ipv4 }} {{ palo_olap_parameter.palo_olap_admin_port }}
admin {{ palo_olap_parameter.ipv4 }} {{ palo_olap_parameter.palo_olap_admin_port }}
...
...
software/palo/server.xml.in
0 → 100644
View file @
7559a94a
<?xml version='1.0' encoding='utf-8'?>
<!--
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You under the Apache License, Version 2.0
(the "License"); you may not use this file except in compliance with
the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<!-- Note: A "Server" is not itself a "Container", so you may not
define subcomponents such as "Valves" at this level.
Documentation at /docs/config/server.html
Debug: {{ repr(palo_etl_parameter) }}
-->
<Server
port=
"-1"
shutdown=
"SHUTDOWN"
>
<!--APR library loader. Documentation at /docs/apr.html -->
<Listener
className=
"org.apache.catalina.core.AprLifecycleListener"
SSLEngine=
"on"
/>
<!--Initialize Jasper prior to webapps are loaded. Documentation at /docs/jasper-howto.html -->
<Listener
className=
"org.apache.catalina.core.JasperListener"
/>
<!-- Prevent memory leaks due to use of particular java/javax APIs-->
<Listener
className=
"org.apache.catalina.core.JreMemoryLeakPreventionListener"
/>
<!-- JMX Support for the Tomcat server. Documentation at /docs/non-existent.html -->
<!--
<Listener className="org.apache.catalina.mbeans.ServerLifecycleListener" />
<Listener className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener" />
-->
<!--
<GlobalNamingResources>
<Resource name="UserDatabase" auth="Container"
type="org.apache.catalina.UserDatabase"
description="User database that can be updated and saved"
factory="org.apache.catalina.users.MemoryUserDatabaseFactory"
pathname="conf/tomcat-users.xml" />
</GlobalNamingResources>
-->
<Service
name=
"Catalina"
>
<Connector
address=
"{{ palo_etl_parameter['tomcat_host'] }}"
port=
"{{ palo_etl_parameter['tomcat_port'] }}"
maxThreads=
"10"
minSpareThreads=
"3"
maxSpareThreads=
"7"
connectionTimeout=
"20000"
enableLookups=
"false"
maxHttpHeaderSize=
"8192"
protocol=
"HTTP/1.1"
useBodyEncodingForURI=
"true"
redirectPort=
"8443"
acceptCount=
"100"
disableUploadTimeout=
"true"
/>
<Context
path=
"/"
docBase=
"{{ palo_etl_parameter['palo_etl_war'] }}/etlserver.war"
debug=
"1"
privileged=
"true"
>
<Realm
className=
"org.apache.catalina.realm.UserDatabaseRealm"
resourceName=
"UserDatabase"
/>
</Context>
<Engine
name=
"Catalina"
defaultHost=
"localhost"
>
<Realm
className=
"org.apache.catalina.realm.UserDatabaseRealm"
resourceName=
"UserDatabase"
/>
<Host
name=
"localhost"
appBase=
"webapps"
debug=
"1"
unpackWARs=
"true"
autoDeploy=
"true"
xmlValidation=
"false"
xmlNamespaceAware=
"false"
>
</Host>
</Engine>
</Service>
</Server>
software/palo/software.cfg
View file @
7559a94a
...
@@ -7,6 +7,7 @@ extends =
...
@@ -7,6 +7,7 @@ extends =
parts =
parts =
palo_olap
palo_olap
palo_etl
palo_etl
template_server_xml
slapos-cookbook
slapos-cookbook
instance-profile
instance-profile
...
@@ -22,11 +23,20 @@ mode = 0644
...
@@ -22,11 +23,20 @@ mode = 0644
recipe = hexagonit.recipe.download
recipe = hexagonit.recipe.download
url = http://downloads.sourceforge.net/project/palo-etl-server/etlserver/Palo%20ETL%20Server%203.2/etlserver.war
url = http://downloads.sourceforge.net/project/palo-etl-server/etlserver/Palo%20ETL%20Server%203.2/etlserver.war
download-only = true
download-only = true
;destination = ${buildout:directory}/var/tomcat/webapps/
[download-base]
recipe = slapos.recipe.build:download
url = ${:_profile_base_location_}/${:filename}
mode = 644
[template_server_xml]
< = download-base
filename = server.xml.in
# md5sum =
[palo_etl]
[palo_etl]
recipe = plone.recipe.command
recipe = plone.recipe.command
command = echo "
TODO
"
command = echo "
etl downlaoded in ${palo_etl_download:location}
"
needs = ${palo_etl_download:url}
needs = ${palo_etl_download:url}
[versions]
[versions]
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment