daniellavoie commented on issue #6757:
URL: 
https://github.com/apache/incubator-pinot/issues/6757#issuecomment-815816132


   Might be caused by the shade plugin configuration.
   
   ```
             <plugin>
               <artifactId>maven-shade-plugin</artifactId>
               <version>3.2.1</version>
               <executions>
                 <execution>
                   <phase>package</phase>
                   <goals>
                     <goal>shade</goal>
                   </goals>
                   <configuration>
                     <!--
                     Usually in hadoop environment, there are multiple jars 
with different versions.
                     Most of the NoSuchMethodExceptions are caused by class 
loading conflicts.
                     Class relocation ensures the reference of certain 
packages/classes in Pinot code to
                     shaded libs, e.g. jackson or guava.
                     Ref: 
https://maven.apache.org/plugins/maven-shade-plugin/examples/class-relocation.html
                     -->
                     <relocations>
                       <relocation>
                         <pattern>com.google.common.base</pattern>
                         
<shadedPattern>shaded.com.google.common.base</shadedPattern>
                       </relocation>
                       <relocation>
                         <pattern>com.fasterxml.jackson</pattern>
                         
<shadedPattern>shaded.com.fasterxml.jackson</shadedPattern>
                       </relocation>
                     </relocations>
                     <transformers>
                       <transformer 
implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer"/>
                       <transformer 
implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
                         
<mainClass>org.apache.pinot.hadoop.PinotHadoopJobLauncher</mainClass>
                       </transformer>
                     </transformers>
                   </configuration>
                 </execution>
               </executions>
             </plugin>
   ```


-- 
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.

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



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to