Skip to content

Commit eb0e8be

Browse files
committed
Update README.md
1 parent 2b55685 commit eb0e8be

File tree

1 file changed

+14
-13
lines changed

1 file changed

+14
-13
lines changed

README.md

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -20,19 +20,21 @@ This version of 1.0.0 requires Spark 1.4.0.
2020

2121
Spark HBase is built using [Apache Maven](http://maven.apache.org/).
2222

23-
2423
I. Clone and build Huawei-Spark/Spark-SQL-on-HBase
25-
24+
```
2625
$ git clone https://github.com/Huawei-Spark/Spark-SQL-on-HBase spark-hbase
2726
```
27+
2828
II. Go to the root of the source tree
2929
```
3030
$ cd spark-hbase
3131
```
32+
3233
III. Build without testing
3334
```
3435
$ mvn -Phbase,hadoop-2.4 -Dhadoop.version=2.4.0 -DskipTests clean package install
3536
```
37+
3638
IV. Build and run test suites against a HBase minicluster, from Maven.
3739
```
3840
$ mvn clean install
@@ -41,21 +43,20 @@ IV. Build and run test suites against a HBase minicluster, from Maven.
4143
## Interactive Scala Shell
4244

4345
The easiest way to start using Spark HBase is through the Scala shell:
44-
46+
```
4547
./bin/hbase-sql
46-
48+
```
4749

4850
## Python Shell
4951

5052
First, add the spark-hbase jar to the SPARK_CLASSPATH in the $SPARK_HOME/conf directory, as follows:
51-
53+
```
5254
SPARK_CLASSPATH=$SPARK_CLASSPATH:/spark-hbase-root-dir/target/spark-sql-on-hbase-1.0.0.jar
53-
54-
55+
```
5556
Then go to the spark-hbase installation directory and issue
56-
57+
```
5758
./bin/pyspark-hbase
58-
59+
```
5960
A successfull message is as follows:
6061

6162
You are using Spark SQL on HBase!!!
@@ -72,13 +73,13 @@ Note that the shell commands are not included in the Zip file of the Spark relea
7273
Testing first requires [building Spark HBase](#building-spark). Once Spark HBase is built ...
7374

7475
Run all test suites from Maven:
75-
76+
```
7677
mvn -Phbase,hadoop-2.4 test
77-
78+
```
7879
Run a single test suite from Maven, for example:
79-
80+
```
8081
mvn -Phbase,hadoop-2.4 test -DwildcardSuites=org.apache.spark.sql.hbase.BasicQueriesSuite
81-
82+
```
8283
## IDE Setup
8384

8485
We use IntelliJ IDEA for Spark HBase development. You can get the community edition for free and install the JetBrains Scala plugin from Preferences > Plugins.

0 commit comments

Comments
 (0)