rahil-c commented on code in PR #6684:
URL: https://github.com/apache/hudi/pull/6684#discussion_r976955462


##########
website/contribute/developer-setup.md:
##########
@@ -275,6 +275,18 @@ Discussion about contributing code to Hudi happens on the 
[dev@ mailing list](/c
 
 This Quick Video will give a code walkthrough to start with 
[watch](https://www.youtube.com/watch?v=N2eDfU_rQ_U).
 
+## Running unit tests and local debugger via Intellij IDE
+
+0. Build the project with the intended profiles via the `mvn` cli, for example 
for spark 3.2 use `mvn clean package -Dspark3.2 -Dscala-2.12 -DskipTests`. 
+1. Install the "Maven Helper" plugin from the Intellij IDE.
+2. Make sure IDEA uses Maven to build/run tests:
+   * You need to select the intended Maven profiles (using Maven tool pane in 
IDEA): select profiles you are targeting for example `spark2.4` and 
`scala-2.11` or `spark3.2`, `scala-2.12` etc. 
+   * Add `.mvn/maven.config` file at the root of the repo w/ the the profiles 
you selected in the pane: `-Dspark3.2` `-Dscala-2.12`
+3. Make sure you change (temporarily) the `scala.binary.version` in the root 
`pom.xml` to the intended scala profile version. For example if running with 
spark3 `scala.binary.version` should be `2.12`
+4. In the root pom.xml under `maven-surefire-plugin`, under this plugin's 
`<configuration>`  make sure to add `<skipTests>false<skipTests>`

Review Comment:
   
   > BTW, i just tried `TestMORDataSource` and it works fine for me w/o 
`skipTests` flag
   got it, will remove `4.` 
   



##########
website/contribute/developer-setup.md:
##########
@@ -275,6 +275,18 @@ Discussion about contributing code to Hudi happens on the 
[dev@ mailing list](/c
 
 This Quick Video will give a code walkthrough to start with 
[watch](https://www.youtube.com/watch?v=N2eDfU_rQ_U).
 
+## Running unit tests and local debugger via Intellij IDE
+
+0. Build the project with the intended profiles via the `mvn` cli, for example 
for spark 3.2 use `mvn clean package -Dspark3.2 -Dscala-2.12 -DskipTests`. 
+1. Install the "Maven Helper" plugin from the Intellij IDE.
+2. Make sure IDEA uses Maven to build/run tests:
+   * You need to select the intended Maven profiles (using Maven tool pane in 
IDEA): select profiles you are targeting for example `spark2.4` and 
`scala-2.11` or `spark3.2`, `scala-2.12` etc. 
+   * Add `.mvn/maven.config` file at the root of the repo w/ the the profiles 
you selected in the pane: `-Dspark3.2` `-Dscala-2.12`
+3. Make sure you change (temporarily) the `scala.binary.version` in the root 
`pom.xml` to the intended scala profile version. For example if running with 
spark3 `scala.binary.version` should be `2.12`
+4. In the root pom.xml under `maven-surefire-plugin`, under this plugin's 
`<configuration>`  make sure to add `<skipTests>false<skipTests>`

Review Comment:
   > BTW, i just tried `TestMORDataSource` and it works fine for me w/o 
`skipTests` flag
   
   got it, will remove `4.` 
   



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to