-
Clone a branch of Pravega from the master or your fork that you want to use.
-
Publish Maven artifacts of Pravega to local repo by executing
./gradlew clean install
. -
Note the version of the Pravega artifacts by inspecting
~/.m2/repository/io/pravega
. Say, it was0.6.0-2259.b80b233-SNAPSHOT
. -
Checkout Hadoop Connectors repo:
git clone --recursive https://github.com/pravega/hadoop-connectors.git
. -
Update gradle.properties of the Hadoop Connectors project: look for pravega artifact version variable and update the artifact version to the one that you just published locally. Ensure that the project doesn't use the Pravega sub-module by setting the appropriate flag.
pravegaVersion=0.6.0-2259.b80b233-SNAPSHOT usePravegaVersionSubModule=false
-
Build the Hadoop connectors project again:
./gradlew clean build
.
- Enable Auth by setting
enableAuth
flag as true inio.pravega.connectors.hadoop.utils.SetupUtils
class. - Ensure that the code is recompiled:
./gradlew clean build -x test
. - Run a subset of tests by interactively running tests in
io.pravega.connectors.hadoop.PravegaConnectorLocalJobITCase
class.
You'll need to pass credentials via command line:
-Dpravega.client.auth.method=Basic -Dpravega.client.auth.token=YWRtaW46MTExMV9hYWFh
Alternatively, run all tests in step 2 itself, by executing ./gradlew clean build
instead.
# Run all tests, without auth
$ ./gradlew clean test -Dpravega.uri=tls://localhost:9090
# Run all tests, with auth
$ ./gradlew clean test -Dpravega.uri=tls://localhost:9090 \
-Dpravega.client.auth.method=Basic -Dpravega.client.auth.token=YWRtaW46MTExMV9hYWFh
# Run tests in a specific class, with auth enabled.
$ ./gradlew clean test -Dpravega.uri=tls://localhost:9090 \
--tests "io.pravega.connectors.hadoop.PravegaConnectorLocalJobITCase"
-Dpravega.client.auth.method=Basic -Dpravega.client.auth.token=YWRtaW46MTExMV9hYWFh