Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge branch 'master' into ROCKETMQ-6
  • Loading branch information
shroman committed Dec 28, 2016
2 parents 8ec82dc + 2eae25c commit 297d903
Show file tree
Hide file tree
Showing 623 changed files with 11,435 additions and 15,913 deletions.
37 changes: 37 additions & 0 deletions BUILDING
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
Build instructions for RocketMQ

====================================================

(1) Requisites

JDK 1.7+ is required in order to compile and run RocketMQ.

RocketMQ utilizes Maven as a distribution management and packaging tool. Version 3.0.3 or later is required.
Maven installation and configuration instructions can be found here:

http://maven.apache.org/run-maven/index.html


(2) Executing test cases

Execute the following command in order to compile and test the components:

$ mvn test


(3) Importing projects to eclipse

First, generate eclipse project files:

$ mvn -U eclipse:eclipse

Then, import to eclipse by specifying the root directory of the project via:

[File] > [Import] > [Existing Projects into Workspace].


(4) Building packages

Execute the following command in order to build the tar.gz packages and install JAR to the local repository:

$ mvn clean package install assembly:assembly -U
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
## RocketMQ [![Build Status](https://travis-ci.org/apache/incubator-rocketmq.svg?branch=master)](https://travis-ci.org/apache/incubator-rocketmq)
[![Maven Central](https://img.shields.io/badge/maven--center-stable--version-green.svg)](http://search.maven.org/#search%7Cga%7C1%7Ccom.alibaba.rocketmq)
[![GitHub release](https://img.shields.io/badge/release-download-orange.svg)](https://github.com/alibaba/RocketMQ/releases)
[![Maven Central](https://img.shields.io/badge/maven--center-stable--version-green.svg)](http://search.maven.org/#search%7Cga%7C1%7Corg.apache.rocketmq)
[![GitHub release](https://img.shields.io/badge/release-download-orange.svg)](https://github.org/apache/rocketmqreleases)
[![License](https://img.shields.io/badge/license-Apache%202-4EB1BA.svg)](https://www.apache.org/licenses/LICENSE-2.0.html)

**RocketMQ is a low latency, reliable, scalable, easy to use message oriented middleware born from alibaba massive messaging business.**
Expand Down Expand Up @@ -31,7 +31,7 @@ It offers a variety of features as follows:
----------

## RocketMQ Community
* [`Docker images`](https://registry.hub.docker.com/u/vongosling/rocketmq/)
* [`Docker images`](https://registry.hub.docker.com/u/vongosling@apache.org/rocketmq/)
* [RocketMQ Community Projects](https://github.com/rocketmq)

----------
Expand Down
5 changes: 1 addition & 4 deletions benchmark/consumer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,4 @@
# See the License for the specific language governing permissions and
# limitations under the License.

#
# $Id: consumer.sh 1831 2013-05-16 01:39:51Z shijia.wxr $
#
sh ./runclass.sh com.alibaba.rocketmq.example.benchmark.Consumer $@ &
sh ./runclass.sh org.apache.rocketmq.example.benchmark.Consumer $@ &
4 changes: 2 additions & 2 deletions benchmark/producer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@
# limitations under the License.

#
# $Id: producer.sh 1831 2013-05-16 01:39:51Z shijia.wxr $
# $Id: producer.sh 1831 2013-05-16 01:39:51Z vintagewang@apache.org $
#
sh ./runclass.sh -Dcom.alibaba.rocketmq.client.sendSmartMsg=true com.alibaba.rocketmq.example.benchmark.Producer $@ &
sh ./runclass.sh -Dorg.apache.rocketmq.client.sendSmartMsg=true org.apache.rocketmq.example.benchmark.Producer $@ &
2 changes: 1 addition & 1 deletion benchmark/runclass.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
# limitations under the License.

#
# $Id: runserver.sh 1831 2013-05-16 01:39:51Z shijia.wxr $
# $Id: runserver.sh 1831 2013-05-16 01:39:51Z vintagewang@apache.org $
#

if [ $# -lt 1 ];
Expand Down
4 changes: 2 additions & 2 deletions benchmark/tproducer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@
# limitations under the License.

#
# $Id: producer.sh 1831 2013-05-16 01:39:51Z shijia.wxr $
# $Id: producer.sh 1831 2013-05-16 01:39:51Z vintagewang@apache.org $
#
sh ./runclass.sh com.alibaba.rocketmq.example.benchmark.TransactionProducer $@
sh ./runclass.sh org.apache.rocketmq.example.benchmark.TransactionProducer $@
2 changes: 1 addition & 1 deletion bin/mqadmin
Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,4 @@ fi

export ROCKETMQ_HOME

sh ${ROCKETMQ_HOME}/bin/tools.sh com.alibaba.rocketmq.tools.command.MQAdminStartup $@
sh ${ROCKETMQ_HOME}/bin/tools.sh org.apache.rocketmq.tools.command.MQAdminStartup $@
2 changes: 1 addition & 1 deletion bin/mqadmin.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

<jvmtype>server</jvmtype>

<mainclass>com.alibaba.rocketmq.tools.command.MQAdminStartup</mainclass>
<mainclass>org.apache.rocketmq.tools.command.MQAdminStartup</mainclass>

<properties>
<java.ext.dirs>${cpd}/../lib</java.ext.dirs>
Expand Down
2 changes: 1 addition & 1 deletion bin/mqbroker
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,4 @@ export ROCKETMQ_HOME

rm -f $HOME/rmq_bk_gc.log.bac
cp $HOME/rmq_bk_gc.log $HOME/rmq_bk_gc.log.bac
sh ${ROCKETMQ_HOME}/bin/runbroker.sh com.alibaba.rocketmq.broker.BrokerStartup $@
sh ${ROCKETMQ_HOME}/bin/runbroker.sh org.apache.rocketmq.broker.BrokerStartup $@
2 changes: 1 addition & 1 deletion bin/mqbroker.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

<jvmtype>server</jvmtype>

<mainclass>com.alibaba.rocketmq.broker.BrokerStartup</mainclass>
<mainclass>org.apache.rocketmq.broker.BrokerStartup</mainclass>

<properties>
<java.ext.dirs>${cpd}/../lib</java.ext.dirs>
Expand Down
2 changes: 1 addition & 1 deletion bin/mqfiltersrv
Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,4 @@ fi

export ROCKETMQ_HOME

sh ${ROCKETMQ_HOME}/bin/runserver.sh com.alibaba.rocketmq.filtersrv.FiltersrvStartup $@
sh ${ROCKETMQ_HOME}/bin/runserver.sh org.apache.rocketmq.filtersrv.FiltersrvStartup $@
2 changes: 1 addition & 1 deletion bin/mqfiltersrv.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

<jvmtype>server</jvmtype>

<mainclass>com.alibaba.rocketmq.filtersrv.FiltersrvStartup</mainclass>
<mainclass>org.apache.rocketmq.filtersrv.FiltersrvStartup</mainclass>

<properties>
<java.ext.dirs>${cpd}/../lib</java.ext.dirs>
Expand Down
2 changes: 1 addition & 1 deletion bin/mqnamesrv
Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,4 @@ fi

export ROCKETMQ_HOME

sh ${ROCKETMQ_HOME}/bin/runserver.sh com.alibaba.rocketmq.namesrv.NamesrvStartup $@
sh ${ROCKETMQ_HOME}/bin/runserver.sh org.apache.rocketmq.namesrv.NamesrvStartup $@
2 changes: 1 addition & 1 deletion bin/mqnamesrv.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

<jvmtype>server</jvmtype>

<mainclass>com.alibaba.rocketmq.namesrv.NamesrvStartup</mainclass>
<mainclass>org.apache.rocketmq.namesrv.NamesrvStartup</mainclass>

<properties>
<java.ext.dirs>${cpd}/../lib</java.ext.dirs>
Expand Down
4 changes: 2 additions & 2 deletions bin/mqshutdown
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
case $1 in
broker)

pid=`ps ax | grep -i 'com.alibaba.rocketmq.broker.BrokerStartup' |grep java | grep -v grep | awk '{print $1}'`
pid=`ps ax | grep -i 'org.apache.rocketmq.broker.BrokerStartup' |grep java | grep -v grep | awk '{print $1}'`
if [ -z "$pid" ] ; then
echo "No mqbroker running."
exit -1;
Expand All @@ -32,7 +32,7 @@ case $1 in
;;
namesrv)

pid=`ps ax | grep -i 'com.alibaba.rocketmq.namesrv.NamesrvStartup' |grep java | grep -v grep | awk '{print $1}'`
pid=`ps ax | grep -i 'org.apache.rocketmq.namesrv.NamesrvStartup' |grep java | grep -v grep | awk '{print $1}'`
if [ -z "$pid" ] ; then
echo "No mqnamesrv running."
exit -1;
Expand Down
2 changes: 1 addition & 1 deletion bin/startfsrv.sh
Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,4 @@ fi

export ROCKETMQ_HOME

nohup sh ${ROCKETMQ_HOME}/bin/runserver.sh com.alibaba.rocketmq.filtersrv.FiltersrvStartup $@ &
nohup sh ${ROCKETMQ_HOME}/bin/runserver.sh org.apache.rocketmq.filtersrv.FiltersrvStartup $@ &
4 changes: 2 additions & 2 deletions rocketmq-broker/pom.xml → broker/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@
limitations under the License.
-->

<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/POM/4.0.0"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<parent>
<groupId>com.alibaba.rocketmq</groupId>
<groupId>org.apache.rocketmq</groupId>
<artifactId>rocketmq-all</artifactId>
<version>4.0.0-SNAPSHOT</version>
</parent>
Expand Down
Loading

0 comments on commit 297d903

Please sign in to comment.