You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@asterixdb.apache.org by "Ian Maxon (Code Review)" <do...@asterixdb.incubator.apache.org> on 2017/02/09 02:00:14 UTC
Change in asterixdb[master]: Debian Packaging for NCService
Ian Maxon has uploaded a new change for review.
https://asterix-gerrit.ics.uci.edu/1492
Change subject: Debian Packaging for NCService
......................................................................
Debian Packaging for NCService
Change-Id: I1b5d0895ed5a34700d4e2f666715b857ce275127
---
M asterixdb/asterix-server/pom.xml
A asterixdb/asterix-server/src/deb/control/control
A asterixdb/asterix-server/src/deb/control/postinst
A asterixdb/asterix-server/src/deb/control/postrm
A asterixdb/asterix-server/src/deb/control/preinst
A asterixdb/asterix-server/src/deb/control/prerm
A asterixdb/asterix-server/src/deb/systemd/asterix-cc.service
A asterixdb/asterix-server/src/deb/systemd/asterix-nc.service
8 files changed, 100 insertions(+), 0 deletions(-)
git pull ssh://asterix-gerrit.ics.uci.edu:29418/asterixdb refs/changes/92/1492/1
diff --git a/asterixdb/asterix-server/pom.xml b/asterixdb/asterix-server/pom.xml
index f91ed64..7d74903 100644
--- a/asterixdb/asterix-server/pom.xml
+++ b/asterixdb/asterix-server/pom.xml
@@ -343,6 +343,66 @@
</executions>
</plugin>
<plugin>
+ <artifactId>jdeb</artifactId>
+ <groupId>org.vafer</groupId>
+ <version>1.5</version>
+ <executions>
+ <execution>
+ <phase>package</phase>
+ <goals>
+ <goal>jdeb</goal>
+ </goals>
+ <configuration>
+ <dataSet>
+ <data>
+ <src>${project.build.directory}/${project.build.finalName}-binary-assembly/</src>
+ <excludes>bin/**</excludes>
+ <type>directory</type>
+ <mapper>
+ <type>perm</type>
+ <prefix>/opt/apache-asterixdb/</prefix>
+ <user>asterixdb</user>
+ <group>asterixdb</group>
+ <filemode>644</filemode>
+ </mapper>
+ </data>
+ <data>
+ <src>${project.build.directory}/${project.build.finalName}-binary-assembly/bin</src>
+ <type>directory</type>
+ <mapper>
+ <type>perm</type>
+ <prefix>/opt/apache-asterixdb/bin</prefix>
+ <user>asterixdb</user>
+ <group>asterixdb</group>
+ <filemode>754</filemode>
+ </mapper>
+ </data>
+ <data>
+ <type>file</type>
+ <src>src/deb/systemd/asterix-cc.service</src>
+ <mapper>
+ <prefix>/lib/systemd/system</prefix>
+ <type>perm</type>
+ <user>root</user>
+ <group>root</group>
+ </mapper>
+ </data>
+ <data>
+ <type>file</type>
+ <src>src/deb/systemd/asterix-nc.service</src>
+ <mapper>
+ <prefix>/lib/systemd/system</prefix>
+ <type>perm</type>
+ <user>root</user>
+ <group>root</group>
+ </mapper>
+ </data>
+ </dataSet>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ <plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<version>2.10</version>
diff --git a/asterixdb/asterix-server/src/deb/control/control b/asterixdb/asterix-server/src/deb/control/control
new file mode 100644
index 0000000..25f5502
--- /dev/null
+++ b/asterixdb/asterix-server/src/deb/control/control
@@ -0,0 +1,10 @@
+Package: apache-asterixdb-server
+Version: [[version]]
+Section: databases
+Priority: optional
+Architecture: all
+Depends: jdk (>= 1.8)
+Maintainer: Ian Maxon <ia...@maxons.email>
+Description: The AsterixDB parallel Big Data Management System
+Distribution: development
+Depends: default-jre | java8-runtime
diff --git a/asterixdb/asterix-server/src/deb/control/postinst b/asterixdb/asterix-server/src/deb/control/postinst
new file mode 100644
index 0000000..a908c2d
--- /dev/null
+++ b/asterixdb/asterix-server/src/deb/control/postinst
@@ -0,0 +1,3 @@
+#!/bin/sh
+adduser --system --group --quiet --home /opt/apache-asterixdb/ \
+--no-create-home --disabled-login --force-badname asterixdb
diff --git a/asterixdb/asterix-server/src/deb/control/postrm b/asterixdb/asterix-server/src/deb/control/postrm
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/asterixdb/asterix-server/src/deb/control/postrm
diff --git a/asterixdb/asterix-server/src/deb/control/preinst b/asterixdb/asterix-server/src/deb/control/preinst
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/asterixdb/asterix-server/src/deb/control/preinst
diff --git a/asterixdb/asterix-server/src/deb/control/prerm b/asterixdb/asterix-server/src/deb/control/prerm
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/asterixdb/asterix-server/src/deb/control/prerm
diff --git a/asterixdb/asterix-server/src/deb/systemd/asterix-cc.service b/asterixdb/asterix-server/src/deb/systemd/asterix-cc.service
new file mode 100644
index 0000000..9aeec65
--- /dev/null
+++ b/asterixdb/asterix-server/src/deb/systemd/asterix-cc.service
@@ -0,0 +1,14 @@
+[Unit]
+Description=Apache AsterixDB Cluster Controller
+After=network.target
+
+[Service]
+Type=simple
+User=asterixdb
+ExecStart=/opt/apache-asterixdb/bin/asterixcc --config-file /opt/apache-asterixdb/cc.conf
+Restart=on-abort
+
+
+[Install]
+WantedBy=multi-user.target
+
diff --git a/asterixdb/asterix-server/src/deb/systemd/asterix-nc.service b/asterixdb/asterix-server/src/deb/systemd/asterix-nc.service
new file mode 100644
index 0000000..dfcc551
--- /dev/null
+++ b/asterixdb/asterix-server/src/deb/systemd/asterix-nc.service
@@ -0,0 +1,13 @@
+[Unit]
+Description=Apache AsterixDB Node Controller Daemon
+After=network.target
+
+[Service]
+Type=simple
+User=asterixdb
+ExecStart=/opt/apache-asterixdb/bin/asterixncservice
+Restart=on-abort
+
+
+[Install]
+WantedBy=multi-user.target
--
To view, visit https://asterix-gerrit.ics.uci.edu/1492
To unsubscribe, visit https://asterix-gerrit.ics.uci.edu/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I1b5d0895ed5a34700d4e2f666715b857ce275127
Gerrit-PatchSet: 1
Gerrit-Project: asterixdb
Gerrit-Branch: master
Gerrit-Owner: Ian Maxon <im...@apache.org>
Change in asterixdb[master]: Debian Packaging for NCService
Posted by "Jenkins (Code Review)" <do...@asterixdb.incubator.apache.org>.
Jenkins has posted comments on this change.
Change subject: Debian Packaging for NCService
......................................................................
Patch Set 3: BAD+1
BAD Compatibility Tests Successful
https://asterix-jenkins.ics.uci.edu/job/asterixbad-compat/498/ : SUCCESS
--
To view, visit https://asterix-gerrit.ics.uci.edu/1492
To unsubscribe, visit https://asterix-gerrit.ics.uci.edu/settings
Gerrit-MessageType: comment
Gerrit-Change-Id: I1b5d0895ed5a34700d4e2f666715b857ce275127
Gerrit-PatchSet: 3
Gerrit-Project: asterixdb
Gerrit-Branch: master
Gerrit-Owner: Ian Maxon <im...@apache.org>
Gerrit-Reviewer: Ian Maxon <im...@apache.org>
Gerrit-Reviewer: Jenkins <je...@fulliautomatix.ics.uci.edu>
Gerrit-Reviewer: Michael Blow <mb...@apache.org>
Gerrit-HasComments: No
Change in asterixdb[master]: Debian Packaging for NCService
Posted by "Jenkins (Code Review)" <do...@asterixdb.incubator.apache.org>.
Jenkins has posted comments on this change.
Change subject: Debian Packaging for NCService
......................................................................
Patch Set 3:
BAD Compatibility Tests Started https://asterix-jenkins.ics.uci.edu/job/asterixbad-compat/498/
--
To view, visit https://asterix-gerrit.ics.uci.edu/1492
To unsubscribe, visit https://asterix-gerrit.ics.uci.edu/settings
Gerrit-MessageType: comment
Gerrit-Change-Id: I1b5d0895ed5a34700d4e2f666715b857ce275127
Gerrit-PatchSet: 3
Gerrit-Project: asterixdb
Gerrit-Branch: master
Gerrit-Owner: Ian Maxon <im...@apache.org>
Gerrit-Reviewer: Ian Maxon <im...@apache.org>
Gerrit-Reviewer: Jenkins <je...@fulliautomatix.ics.uci.edu>
Gerrit-Reviewer: Michael Blow <mb...@apache.org>
Gerrit-HasComments: No
Change in asterixdb[master]: Debian Packaging for NCService
Posted by "Jenkins (Code Review)" <do...@asterixdb.incubator.apache.org>.
Jenkins has posted comments on this change.
Change subject: Debian Packaging for NCService
......................................................................
Patch Set 4:
BAD Compatibility Tests Started https://asterix-jenkins.ics.uci.edu/job/asterixbad-compat/502/
--
To view, visit https://asterix-gerrit.ics.uci.edu/1492
To unsubscribe, visit https://asterix-gerrit.ics.uci.edu/settings
Gerrit-MessageType: comment
Gerrit-Change-Id: I1b5d0895ed5a34700d4e2f666715b857ce275127
Gerrit-PatchSet: 4
Gerrit-Project: asterixdb
Gerrit-Branch: master
Gerrit-Owner: Ian Maxon <im...@apache.org>
Gerrit-Reviewer: Ian Maxon <im...@apache.org>
Gerrit-Reviewer: Jenkins <je...@fulliautomatix.ics.uci.edu>
Gerrit-Reviewer: Michael Blow <mb...@apache.org>
Gerrit-HasComments: No
Change in asterixdb[master]: Debian Packaging for NCService
Posted by "Jenkins (Code Review)" <do...@asterixdb.incubator.apache.org>.
Jenkins has posted comments on this change.
Change subject: Debian Packaging for NCService
......................................................................
Patch Set 1:
Build Started https://asterix-jenkins.ics.uci.edu/job/asterix-gerrit-notopic/4222/
--
To view, visit https://asterix-gerrit.ics.uci.edu/1492
To unsubscribe, visit https://asterix-gerrit.ics.uci.edu/settings
Gerrit-MessageType: comment
Gerrit-Change-Id: I1b5d0895ed5a34700d4e2f666715b857ce275127
Gerrit-PatchSet: 1
Gerrit-Project: asterixdb
Gerrit-Branch: master
Gerrit-Owner: Ian Maxon <im...@apache.org>
Gerrit-Reviewer: Jenkins <je...@fulliautomatix.ics.uci.edu>
Gerrit-HasComments: No
Change in asterixdb[master]: Debian Packaging for NCService
Posted by "Ian Maxon (Code Review)" <do...@asterixdb.incubator.apache.org>.
Hello Jenkins,
I'd like you to reexamine a change. Please visit
https://asterix-gerrit.ics.uci.edu/1492
to look at the new patch set (#2).
Change subject: Debian Packaging for NCService
......................................................................
Debian Packaging for NCService
Change-Id: I1b5d0895ed5a34700d4e2f666715b857ce275127
---
M asterixdb/asterix-server/pom.xml
A asterixdb/asterix-server/src/deb/control/control
A asterixdb/asterix-server/src/deb/control/postinst
A asterixdb/asterix-server/src/deb/control/postrm
A asterixdb/asterix-server/src/deb/control/preinst
A asterixdb/asterix-server/src/deb/control/prerm
A asterixdb/asterix-server/src/deb/systemd/asterix-cc.service
A asterixdb/asterix-server/src/deb/systemd/asterix-nc.service
8 files changed, 177 insertions(+), 0 deletions(-)
git pull ssh://asterix-gerrit.ics.uci.edu:29418/asterixdb refs/changes/92/1492/2
--
To view, visit https://asterix-gerrit.ics.uci.edu/1492
To unsubscribe, visit https://asterix-gerrit.ics.uci.edu/settings
Gerrit-MessageType: newpatchset
Gerrit-Change-Id: I1b5d0895ed5a34700d4e2f666715b857ce275127
Gerrit-PatchSet: 2
Gerrit-Project: asterixdb
Gerrit-Branch: master
Gerrit-Owner: Ian Maxon <im...@apache.org>
Gerrit-Reviewer: Jenkins <je...@fulliautomatix.ics.uci.edu>
Change in asterixdb[master]: Debian Packaging for NCService
Posted by "Jenkins (Code Review)" <do...@asterixdb.incubator.apache.org>.
Jenkins has posted comments on this change.
Change subject: Debian Packaging for NCService
......................................................................
Patch Set 3:
Build Started https://asterix-jenkins.ics.uci.edu/job/asterix-gerrit-notopic/4224/
--
To view, visit https://asterix-gerrit.ics.uci.edu/1492
To unsubscribe, visit https://asterix-gerrit.ics.uci.edu/settings
Gerrit-MessageType: comment
Gerrit-Change-Id: I1b5d0895ed5a34700d4e2f666715b857ce275127
Gerrit-PatchSet: 3
Gerrit-Project: asterixdb
Gerrit-Branch: master
Gerrit-Owner: Ian Maxon <im...@apache.org>
Gerrit-Reviewer: Jenkins <je...@fulliautomatix.ics.uci.edu>
Gerrit-Reviewer: Michael Blow <mb...@apache.org>
Gerrit-HasComments: No
Change in asterixdb[master]: Debian Packaging for NCService
Posted by "Michael Blow (Code Review)" <do...@asterixdb.incubator.apache.org>.
Michael Blow has posted comments on this change.
Change subject: Debian Packaging for NCService
......................................................................
Patch Set 4: Code-Review+2
--
To view, visit https://asterix-gerrit.ics.uci.edu/1492
To unsubscribe, visit https://asterix-gerrit.ics.uci.edu/settings
Gerrit-MessageType: comment
Gerrit-Change-Id: I1b5d0895ed5a34700d4e2f666715b857ce275127
Gerrit-PatchSet: 4
Gerrit-Project: asterixdb
Gerrit-Branch: master
Gerrit-Owner: Ian Maxon <im...@apache.org>
Gerrit-Reviewer: Ian Maxon <im...@apache.org>
Gerrit-Reviewer: Jenkins <je...@fulliautomatix.ics.uci.edu>
Gerrit-Reviewer: Michael Blow <mb...@apache.org>
Gerrit-HasComments: No
Change in asterixdb[master]: Debian Packaging for NCService
Posted by "Jenkins (Code Review)" <do...@asterixdb.incubator.apache.org>.
Jenkins has posted comments on this change.
Change subject: Debian Packaging for NCService
......................................................................
Patch Set 4: Integration-Tests+1
Integration Tests Successful
https://asterix-jenkins.ics.uci.edu/job/asterix-gerrit-integration-tests/1840/ : SUCCESS
--
To view, visit https://asterix-gerrit.ics.uci.edu/1492
To unsubscribe, visit https://asterix-gerrit.ics.uci.edu/settings
Gerrit-MessageType: comment
Gerrit-Change-Id: I1b5d0895ed5a34700d4e2f666715b857ce275127
Gerrit-PatchSet: 4
Gerrit-Project: asterixdb
Gerrit-Branch: master
Gerrit-Owner: Ian Maxon <im...@apache.org>
Gerrit-Reviewer: Ian Maxon <im...@apache.org>
Gerrit-Reviewer: Jenkins <je...@fulliautomatix.ics.uci.edu>
Gerrit-Reviewer: Michael Blow <mb...@apache.org>
Gerrit-HasComments: No
Change in asterixdb[master]: Debian Packaging for NCService
Posted by "Ian Maxon (Code Review)" <do...@asterixdb.incubator.apache.org>.
Ian Maxon has posted comments on this change.
Change subject: Debian Packaging for NCService
......................................................................
Patch Set 3:
(5 comments)
https://asterix-gerrit.ics.uci.edu/#/c/1492/3/asterixdb/asterix-server/src/deb/control/control
File asterixdb/asterix-server/src/deb/control/control:
PS3, Line 21: Ian Maxon <ia...@maxons.email>
> Should this be a person, or should we use the dev or some other mlist?
Most examples I see have it as one person
PS3, Line 22: The AsterixDB parallel Big Data Management System
> Should we use this heading adapted from the https://asterixdb.apache.org/ s
Good point
https://asterix-gerrit.ics.uci.edu/#/c/1492/3/asterixdb/asterix-server/src/deb/systemd/asterix-cc.service
File asterixdb/asterix-server/src/deb/systemd/asterix-cc.service:
PS3, Line 25:
> should we have two blank lines here?
Done
PS3, Line 28:
> remove extra trailing newline?
Done
https://asterix-gerrit.ics.uci.edu/#/c/1492/3/asterixdb/asterix-server/src/deb/systemd/asterix-nc.service
File asterixdb/asterix-server/src/deb/systemd/asterix-nc.service:
PS3, Line 25:
> should we have two blank lines here?
Done
--
To view, visit https://asterix-gerrit.ics.uci.edu/1492
To unsubscribe, visit https://asterix-gerrit.ics.uci.edu/settings
Gerrit-MessageType: comment
Gerrit-Change-Id: I1b5d0895ed5a34700d4e2f666715b857ce275127
Gerrit-PatchSet: 3
Gerrit-Project: asterixdb
Gerrit-Branch: master
Gerrit-Owner: Ian Maxon <im...@apache.org>
Gerrit-Reviewer: Ian Maxon <im...@apache.org>
Gerrit-Reviewer: Jenkins <je...@fulliautomatix.ics.uci.edu>
Gerrit-Reviewer: Michael Blow <mb...@apache.org>
Gerrit-HasComments: Yes
Change in asterixdb[master]: Debian Packaging for NCService
Posted by "Ian Maxon (Code Review)" <do...@asterixdb.incubator.apache.org>.
Hello Jenkins,
I'd like you to reexamine a change. Please visit
https://asterix-gerrit.ics.uci.edu/1492
to look at the new patch set (#3).
Change subject: Debian Packaging for NCService
......................................................................
Debian Packaging for NCService
Change-Id: I1b5d0895ed5a34700d4e2f666715b857ce275127
---
M asterixdb/asterix-server/pom.xml
A asterixdb/asterix-server/src/deb/control/control
A asterixdb/asterix-server/src/deb/control/postinst
A asterixdb/asterix-server/src/deb/control/postrm
A asterixdb/asterix-server/src/deb/control/preinst
A asterixdb/asterix-server/src/deb/control/prerm
A asterixdb/asterix-server/src/deb/systemd/asterix-cc.service
A asterixdb/asterix-server/src/deb/systemd/asterix-nc.service
8 files changed, 201 insertions(+), 0 deletions(-)
git pull ssh://asterix-gerrit.ics.uci.edu:29418/asterixdb refs/changes/92/1492/3
--
To view, visit https://asterix-gerrit.ics.uci.edu/1492
To unsubscribe, visit https://asterix-gerrit.ics.uci.edu/settings
Gerrit-MessageType: newpatchset
Gerrit-Change-Id: I1b5d0895ed5a34700d4e2f666715b857ce275127
Gerrit-PatchSet: 3
Gerrit-Project: asterixdb
Gerrit-Branch: master
Gerrit-Owner: Ian Maxon <im...@apache.org>
Gerrit-Reviewer: Jenkins <je...@fulliautomatix.ics.uci.edu>
Gerrit-Reviewer: Michael Blow <mb...@apache.org>
Change in asterixdb[master]: Debian Packaging for NCService
Posted by "Ian Maxon (Code Review)" <do...@asterixdb.incubator.apache.org>.
Hello Jenkins,
I'd like you to reexamine a change. Please visit
https://asterix-gerrit.ics.uci.edu/1492
to look at the new patch set (#4).
Change subject: Debian Packaging for NCService
......................................................................
Debian Packaging for NCService
Change-Id: I1b5d0895ed5a34700d4e2f666715b857ce275127
---
M asterixdb/asterix-server/pom.xml
A asterixdb/asterix-server/src/deb/control/control
A asterixdb/asterix-server/src/deb/control/postinst
A asterixdb/asterix-server/src/deb/control/postrm
A asterixdb/asterix-server/src/deb/control/preinst
A asterixdb/asterix-server/src/deb/control/prerm
A asterixdb/asterix-server/src/deb/systemd/asterix-cc.service
A asterixdb/asterix-server/src/deb/systemd/asterix-nc.service
8 files changed, 198 insertions(+), 0 deletions(-)
git pull ssh://asterix-gerrit.ics.uci.edu:29418/asterixdb refs/changes/92/1492/4
--
To view, visit https://asterix-gerrit.ics.uci.edu/1492
To unsubscribe, visit https://asterix-gerrit.ics.uci.edu/settings
Gerrit-MessageType: newpatchset
Gerrit-Change-Id: I1b5d0895ed5a34700d4e2f666715b857ce275127
Gerrit-PatchSet: 4
Gerrit-Project: asterixdb
Gerrit-Branch: master
Gerrit-Owner: Ian Maxon <im...@apache.org>
Gerrit-Reviewer: Ian Maxon <im...@apache.org>
Gerrit-Reviewer: Jenkins <je...@fulliautomatix.ics.uci.edu>
Gerrit-Reviewer: Michael Blow <mb...@apache.org>
Change in asterixdb[master]: Debian Packaging for NCService
Posted by "Jenkins (Code Review)" <do...@asterixdb.incubator.apache.org>.
Jenkins has posted comments on this change.
Change subject: Debian Packaging for NCService
......................................................................
Patch Set 4: BAD+1
BAD Compatibility Tests Successful
https://asterix-jenkins.ics.uci.edu/job/asterixbad-compat/502/ : SUCCESS
--
To view, visit https://asterix-gerrit.ics.uci.edu/1492
To unsubscribe, visit https://asterix-gerrit.ics.uci.edu/settings
Gerrit-MessageType: comment
Gerrit-Change-Id: I1b5d0895ed5a34700d4e2f666715b857ce275127
Gerrit-PatchSet: 4
Gerrit-Project: asterixdb
Gerrit-Branch: master
Gerrit-Owner: Ian Maxon <im...@apache.org>
Gerrit-Reviewer: Ian Maxon <im...@apache.org>
Gerrit-Reviewer: Jenkins <je...@fulliautomatix.ics.uci.edu>
Gerrit-Reviewer: Michael Blow <mb...@apache.org>
Gerrit-HasComments: No
Change in asterixdb[master]: Debian Packaging for NCService
Posted by "Michael Blow (Code Review)" <do...@asterixdb.incubator.apache.org>.
Michael Blow has posted comments on this change.
Change subject: Debian Packaging for NCService
......................................................................
Patch Set 3:
(6 comments)
https://asterix-gerrit.ics.uci.edu/#/c/1492/3/asterixdb/asterix-server/src/deb/control/control
File asterixdb/asterix-server/src/deb/control/control:
PS3, Line 21: Ian Maxon <ia...@maxons.email>
Should this be a person, or should we use the dev or some other mlist?
PS3, Line 22: The AsterixDB parallel Big Data Management System
Should we use this heading adapted from the https://asterixdb.apache.org/ site? "Apache AsterixDB - a scalable, open source Big Data Management System (BDMS)"
PS3, Line 22: AsterixDB
insert Apache?
https://asterix-gerrit.ics.uci.edu/#/c/1492/3/asterixdb/asterix-server/src/deb/systemd/asterix-cc.service
File asterixdb/asterix-server/src/deb/systemd/asterix-cc.service:
PS3, Line 25:
should we have two blank lines here?
PS3, Line 28:
remove extra trailing newline?
https://asterix-gerrit.ics.uci.edu/#/c/1492/3/asterixdb/asterix-server/src/deb/systemd/asterix-nc.service
File asterixdb/asterix-server/src/deb/systemd/asterix-nc.service:
PS3, Line 25:
should we have two blank lines here?
--
To view, visit https://asterix-gerrit.ics.uci.edu/1492
To unsubscribe, visit https://asterix-gerrit.ics.uci.edu/settings
Gerrit-MessageType: comment
Gerrit-Change-Id: I1b5d0895ed5a34700d4e2f666715b857ce275127
Gerrit-PatchSet: 3
Gerrit-Project: asterixdb
Gerrit-Branch: master
Gerrit-Owner: Ian Maxon <im...@apache.org>
Gerrit-Reviewer: Ian Maxon <im...@apache.org>
Gerrit-Reviewer: Jenkins <je...@fulliautomatix.ics.uci.edu>
Gerrit-Reviewer: Michael Blow <mb...@apache.org>
Gerrit-HasComments: Yes
Change in asterixdb[master]: Debian Packaging for NCService
Posted by "Ian Maxon (Code Review)" <do...@asterixdb.incubator.apache.org>.
Ian Maxon has posted comments on this change.
Change subject: Debian Packaging for NCService
......................................................................
Patch Set 2:
(1 comment)
https://asterix-gerrit.ics.uci.edu/#/c/1492/2/asterixdb/asterix-server/src/deb/systemd/asterix-cc.service
File asterixdb/asterix-server/src/deb/systemd/asterix-cc.service:
> Are these .ini files? Usually leading '; ' is considered a comment, so we
No, it's a systemd service file, which I suppose took major inspiration from ini syntax. I'll add the license here too though.
--
To view, visit https://asterix-gerrit.ics.uci.edu/1492
To unsubscribe, visit https://asterix-gerrit.ics.uci.edu/settings
Gerrit-MessageType: comment
Gerrit-Change-Id: I1b5d0895ed5a34700d4e2f666715b857ce275127
Gerrit-PatchSet: 2
Gerrit-Project: asterixdb
Gerrit-Branch: master
Gerrit-Owner: Ian Maxon <im...@apache.org>
Gerrit-Reviewer: Ian Maxon <im...@apache.org>
Gerrit-Reviewer: Jenkins <je...@fulliautomatix.ics.uci.edu>
Gerrit-Reviewer: Michael Blow <mb...@apache.org>
Gerrit-HasComments: Yes
Change in asterixdb[master]: Debian Packaging for NCService
Posted by "Jenkins (Code Review)" <do...@asterixdb.incubator.apache.org>.
Jenkins has posted comments on this change.
Change subject: Debian Packaging for NCService
......................................................................
Patch Set 4:
Integration Tests Started https://asterix-jenkins.ics.uci.edu/job/asterix-gerrit-integration-tests/1840/
--
To view, visit https://asterix-gerrit.ics.uci.edu/1492
To unsubscribe, visit https://asterix-gerrit.ics.uci.edu/settings
Gerrit-MessageType: comment
Gerrit-Change-Id: I1b5d0895ed5a34700d4e2f666715b857ce275127
Gerrit-PatchSet: 4
Gerrit-Project: asterixdb
Gerrit-Branch: master
Gerrit-Owner: Ian Maxon <im...@apache.org>
Gerrit-Reviewer: Ian Maxon <im...@apache.org>
Gerrit-Reviewer: Jenkins <je...@fulliautomatix.ics.uci.edu>
Gerrit-Reviewer: Michael Blow <mb...@apache.org>
Gerrit-HasComments: No
Change in asterixdb[master]: Debian Packaging for NCService
Posted by "Jenkins (Code Review)" <do...@asterixdb.incubator.apache.org>.
Jenkins has posted comments on this change.
Change subject: Debian Packaging for NCService
......................................................................
Patch Set 4:
Build Started https://asterix-jenkins.ics.uci.edu/job/asterix-gerrit-notopic/4229/
--
To view, visit https://asterix-gerrit.ics.uci.edu/1492
To unsubscribe, visit https://asterix-gerrit.ics.uci.edu/settings
Gerrit-MessageType: comment
Gerrit-Change-Id: I1b5d0895ed5a34700d4e2f666715b857ce275127
Gerrit-PatchSet: 4
Gerrit-Project: asterixdb
Gerrit-Branch: master
Gerrit-Owner: Ian Maxon <im...@apache.org>
Gerrit-Reviewer: Ian Maxon <im...@apache.org>
Gerrit-Reviewer: Jenkins <je...@fulliautomatix.ics.uci.edu>
Gerrit-Reviewer: Michael Blow <mb...@apache.org>
Gerrit-HasComments: No
Change in asterixdb[master]: Debian Packaging for NCService
Posted by "Jenkins (Code Review)" <do...@asterixdb.incubator.apache.org>.
Jenkins has posted comments on this change.
Change subject: Debian Packaging for NCService
......................................................................
Patch Set 4: Integration-Tests-1
Integration Tests Timed Out
https://asterix-jenkins.ics.uci.edu/job/asterix-gerrit-integration-tests/1837/ : ABORTED
--
To view, visit https://asterix-gerrit.ics.uci.edu/1492
To unsubscribe, visit https://asterix-gerrit.ics.uci.edu/settings
Gerrit-MessageType: comment
Gerrit-Change-Id: I1b5d0895ed5a34700d4e2f666715b857ce275127
Gerrit-PatchSet: 4
Gerrit-Project: asterixdb
Gerrit-Branch: master
Gerrit-Owner: Ian Maxon <im...@apache.org>
Gerrit-Reviewer: Ian Maxon <im...@apache.org>
Gerrit-Reviewer: Jenkins <je...@fulliautomatix.ics.uci.edu>
Gerrit-Reviewer: Michael Blow <mb...@apache.org>
Gerrit-HasComments: No
Change in asterixdb[master]: Debian Packaging for NCService
Posted by "Jenkins (Code Review)" <do...@asterixdb.incubator.apache.org>.
Jenkins has posted comments on this change.
Change subject: Debian Packaging for NCService
......................................................................
Patch Set 3: Integration-Tests+1
Integration Tests Successful
https://asterix-jenkins.ics.uci.edu/job/asterix-gerrit-integration-tests/1833/ : SUCCESS
--
To view, visit https://asterix-gerrit.ics.uci.edu/1492
To unsubscribe, visit https://asterix-gerrit.ics.uci.edu/settings
Gerrit-MessageType: comment
Gerrit-Change-Id: I1b5d0895ed5a34700d4e2f666715b857ce275127
Gerrit-PatchSet: 3
Gerrit-Project: asterixdb
Gerrit-Branch: master
Gerrit-Owner: Ian Maxon <im...@apache.org>
Gerrit-Reviewer: Ian Maxon <im...@apache.org>
Gerrit-Reviewer: Jenkins <je...@fulliautomatix.ics.uci.edu>
Gerrit-Reviewer: Michael Blow <mb...@apache.org>
Gerrit-HasComments: No
Change in asterixdb[master]: Debian Packaging for NCService
Posted by "Jenkins (Code Review)" <do...@asterixdb.incubator.apache.org>.
Jenkins has posted comments on this change.
Change subject: Debian Packaging for NCService
......................................................................
Patch Set 3:
Integration Tests Started https://asterix-jenkins.ics.uci.edu/job/asterix-gerrit-integration-tests/1833/
--
To view, visit https://asterix-gerrit.ics.uci.edu/1492
To unsubscribe, visit https://asterix-gerrit.ics.uci.edu/settings
Gerrit-MessageType: comment
Gerrit-Change-Id: I1b5d0895ed5a34700d4e2f666715b857ce275127
Gerrit-PatchSet: 3
Gerrit-Project: asterixdb
Gerrit-Branch: master
Gerrit-Owner: Ian Maxon <im...@apache.org>
Gerrit-Reviewer: Ian Maxon <im...@apache.org>
Gerrit-Reviewer: Jenkins <je...@fulliautomatix.ics.uci.edu>
Gerrit-Reviewer: Michael Blow <mb...@apache.org>
Gerrit-HasComments: No
Change in asterixdb[master]: Debian Packaging for NCService
Posted by "Jenkins (Code Review)" <do...@asterixdb.incubator.apache.org>.
Jenkins has posted comments on this change.
Change subject: Debian Packaging for NCService
......................................................................
Patch Set 4:
Integration Tests Started https://asterix-jenkins.ics.uci.edu/job/asterix-gerrit-integration-tests/1837/
--
To view, visit https://asterix-gerrit.ics.uci.edu/1492
To unsubscribe, visit https://asterix-gerrit.ics.uci.edu/settings
Gerrit-MessageType: comment
Gerrit-Change-Id: I1b5d0895ed5a34700d4e2f666715b857ce275127
Gerrit-PatchSet: 4
Gerrit-Project: asterixdb
Gerrit-Branch: master
Gerrit-Owner: Ian Maxon <im...@apache.org>
Gerrit-Reviewer: Ian Maxon <im...@apache.org>
Gerrit-Reviewer: Jenkins <je...@fulliautomatix.ics.uci.edu>
Gerrit-Reviewer: Michael Blow <mb...@apache.org>
Gerrit-HasComments: No
Change in asterixdb[master]: Debian Packaging for NCService
Posted by "Jenkins (Code Review)" <do...@asterixdb.incubator.apache.org>.
Jenkins has posted comments on this change.
Change subject: Debian Packaging for NCService
......................................................................
Patch Set 2:
Build Started https://asterix-jenkins.ics.uci.edu/job/asterix-gerrit-notopic/4223/
--
To view, visit https://asterix-gerrit.ics.uci.edu/1492
To unsubscribe, visit https://asterix-gerrit.ics.uci.edu/settings
Gerrit-MessageType: comment
Gerrit-Change-Id: I1b5d0895ed5a34700d4e2f666715b857ce275127
Gerrit-PatchSet: 2
Gerrit-Project: asterixdb
Gerrit-Branch: master
Gerrit-Owner: Ian Maxon <im...@apache.org>
Gerrit-Reviewer: Jenkins <je...@fulliautomatix.ics.uci.edu>
Gerrit-HasComments: No
Change in asterixdb[master]: Debian Packaging for NCService
Posted by "Ian Maxon (Code Review)" <do...@asterixdb.incubator.apache.org>.
Ian Maxon has submitted this change and it was merged.
Change subject: Debian Packaging for NCService
......................................................................
Debian Packaging for NCService
Change-Id: I1b5d0895ed5a34700d4e2f666715b857ce275127
Reviewed-on: https://asterix-gerrit.ics.uci.edu/1492
Sonar-Qube: Jenkins <je...@fulliautomatix.ics.uci.edu>
Tested-by: Jenkins <je...@fulliautomatix.ics.uci.edu>
BAD: Jenkins <je...@fulliautomatix.ics.uci.edu>
Integration-Tests: Jenkins <je...@fulliautomatix.ics.uci.edu>
Reviewed-by: Michael Blow <mb...@apache.org>
---
M asterixdb/asterix-server/pom.xml
A asterixdb/asterix-server/src/deb/control/control
A asterixdb/asterix-server/src/deb/control/postinst
A asterixdb/asterix-server/src/deb/control/postrm
A asterixdb/asterix-server/src/deb/control/preinst
A asterixdb/asterix-server/src/deb/control/prerm
A asterixdb/asterix-server/src/deb/systemd/asterix-cc.service
A asterixdb/asterix-server/src/deb/systemd/asterix-nc.service
8 files changed, 198 insertions(+), 0 deletions(-)
Approvals:
Michael Blow: Looks good to me, approved
Jenkins: Verified; No violations found; No violations found; Verified
diff --git a/asterixdb/asterix-server/pom.xml b/asterixdb/asterix-server/pom.xml
index f91ed64..7d74903 100644
--- a/asterixdb/asterix-server/pom.xml
+++ b/asterixdb/asterix-server/pom.xml
@@ -343,6 +343,66 @@
</executions>
</plugin>
<plugin>
+ <artifactId>jdeb</artifactId>
+ <groupId>org.vafer</groupId>
+ <version>1.5</version>
+ <executions>
+ <execution>
+ <phase>package</phase>
+ <goals>
+ <goal>jdeb</goal>
+ </goals>
+ <configuration>
+ <dataSet>
+ <data>
+ <src>${project.build.directory}/${project.build.finalName}-binary-assembly/</src>
+ <excludes>bin/**</excludes>
+ <type>directory</type>
+ <mapper>
+ <type>perm</type>
+ <prefix>/opt/apache-asterixdb/</prefix>
+ <user>asterixdb</user>
+ <group>asterixdb</group>
+ <filemode>644</filemode>
+ </mapper>
+ </data>
+ <data>
+ <src>${project.build.directory}/${project.build.finalName}-binary-assembly/bin</src>
+ <type>directory</type>
+ <mapper>
+ <type>perm</type>
+ <prefix>/opt/apache-asterixdb/bin</prefix>
+ <user>asterixdb</user>
+ <group>asterixdb</group>
+ <filemode>754</filemode>
+ </mapper>
+ </data>
+ <data>
+ <type>file</type>
+ <src>src/deb/systemd/asterix-cc.service</src>
+ <mapper>
+ <prefix>/lib/systemd/system</prefix>
+ <type>perm</type>
+ <user>root</user>
+ <group>root</group>
+ </mapper>
+ </data>
+ <data>
+ <type>file</type>
+ <src>src/deb/systemd/asterix-nc.service</src>
+ <mapper>
+ <prefix>/lib/systemd/system</prefix>
+ <type>perm</type>
+ <user>root</user>
+ <group>root</group>
+ </mapper>
+ </data>
+ </dataSet>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ <plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<version>2.10</version>
diff --git a/asterixdb/asterix-server/src/deb/control/control b/asterixdb/asterix-server/src/deb/control/control
new file mode 100644
index 0000000..1f6c213
--- /dev/null
+++ b/asterixdb/asterix-server/src/deb/control/control
@@ -0,0 +1,24 @@
+# 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.
+Package: apache-asterixdb-server
+Version: [[version]]
+Section: databases
+Priority: extra
+Architecture: all
+Depends: jdk (>= 1.8)
+Maintainer: Ian Maxon <ia...@maxons.email>
+Description: Apache AsterixDB - a scalable, open source Big Data Management System (BDMS)
+Distribution: development
+Depends: default-jre | java8-runtime
diff --git a/asterixdb/asterix-server/src/deb/control/postinst b/asterixdb/asterix-server/src/deb/control/postinst
new file mode 100644
index 0000000..896ca28
--- /dev/null
+++ b/asterixdb/asterix-server/src/deb/control/postinst
@@ -0,0 +1,17 @@
+#!/bin/sh
+# 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.
+adduser --system --group --quiet --home /opt/apache-asterixdb/ \
+--no-create-home --disabled-login --force-badname asterixdb
diff --git a/asterixdb/asterix-server/src/deb/control/postrm b/asterixdb/asterix-server/src/deb/control/postrm
new file mode 100644
index 0000000..4509c90
--- /dev/null
+++ b/asterixdb/asterix-server/src/deb/control/postrm
@@ -0,0 +1,15 @@
+#!/bin/sh
+# 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.
diff --git a/asterixdb/asterix-server/src/deb/control/preinst b/asterixdb/asterix-server/src/deb/control/preinst
new file mode 100644
index 0000000..4509c90
--- /dev/null
+++ b/asterixdb/asterix-server/src/deb/control/preinst
@@ -0,0 +1,15 @@
+#!/bin/sh
+# 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.
diff --git a/asterixdb/asterix-server/src/deb/control/prerm b/asterixdb/asterix-server/src/deb/control/prerm
new file mode 100644
index 0000000..4509c90
--- /dev/null
+++ b/asterixdb/asterix-server/src/deb/control/prerm
@@ -0,0 +1,15 @@
+#!/bin/sh
+# 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.
diff --git a/asterixdb/asterix-server/src/deb/systemd/asterix-cc.service b/asterixdb/asterix-server/src/deb/systemd/asterix-cc.service
new file mode 100644
index 0000000..9711fba
--- /dev/null
+++ b/asterixdb/asterix-server/src/deb/systemd/asterix-cc.service
@@ -0,0 +1,26 @@
+# 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.
+[Unit]
+Description=Apache AsterixDB Cluster Controller
+After=network.target
+
+[Service]
+Type=simple
+User=asterixdb
+ExecStart=/opt/apache-asterixdb/bin/asterixcc --config-file /opt/apache-asterixdb/cc.conf
+Restart=on-abort
+
+[Install]
+WantedBy=multi-user.target
diff --git a/asterixdb/asterix-server/src/deb/systemd/asterix-nc.service b/asterixdb/asterix-server/src/deb/systemd/asterix-nc.service
new file mode 100644
index 0000000..bfe6296
--- /dev/null
+++ b/asterixdb/asterix-server/src/deb/systemd/asterix-nc.service
@@ -0,0 +1,26 @@
+# 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.
+[Unit]
+Description=Apache AsterixDB Node Controller Daemon
+After=network.target
+
+[Service]
+Type=simple
+User=asterixdb
+ExecStart=/opt/apache-asterixdb/bin/asterixncservice
+Restart=on-abort
+
+[Install]
+WantedBy=multi-user.target
--
To view, visit https://asterix-gerrit.ics.uci.edu/1492
To unsubscribe, visit https://asterix-gerrit.ics.uci.edu/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I1b5d0895ed5a34700d4e2f666715b857ce275127
Gerrit-PatchSet: 5
Gerrit-Project: asterixdb
Gerrit-Branch: master
Gerrit-Owner: Ian Maxon <im...@apache.org>
Gerrit-Reviewer: Ian Maxon <im...@apache.org>
Gerrit-Reviewer: Jenkins <je...@fulliautomatix.ics.uci.edu>
Gerrit-Reviewer: Michael Blow <mb...@apache.org>
Change in asterixdb[master]: Debian Packaging for NCService
Posted by "Michael Blow (Code Review)" <do...@asterixdb.incubator.apache.org>.
Michael Blow has posted comments on this change.
Change subject: Debian Packaging for NCService
......................................................................
Patch Set 2:
(1 comment)
https://asterix-gerrit.ics.uci.edu/#/c/1492/2/asterixdb/asterix-server/src/deb/systemd/asterix-cc.service
File asterixdb/asterix-server/src/deb/systemd/asterix-cc.service:
Are these .ini files? Usually leading '; ' is considered a comment, so we can put a license in?
--
To view, visit https://asterix-gerrit.ics.uci.edu/1492
To unsubscribe, visit https://asterix-gerrit.ics.uci.edu/settings
Gerrit-MessageType: comment
Gerrit-Change-Id: I1b5d0895ed5a34700d4e2f666715b857ce275127
Gerrit-PatchSet: 2
Gerrit-Project: asterixdb
Gerrit-Branch: master
Gerrit-Owner: Ian Maxon <im...@apache.org>
Gerrit-Reviewer: Jenkins <je...@fulliautomatix.ics.uci.edu>
Gerrit-Reviewer: Michael Blow <mb...@apache.org>
Gerrit-HasComments: Yes