You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@tez.apache.org by Raajay <ra...@gmail.com> on 2015/09/01 21:40:07 UTC

Add tez dependency

How to add Tez as a dependency to another project ?

I have a Tez client in a separate project and want to use Tez classes in
it. I added the dependency to pom.xml for the application project as below

 <dependency>
      <groupId>org.apache.tez</groupId>
      <artifactId>tez</artifactId>
      <version>0.8.0-SNAPSHOT</version>
    </dependency>


The commmand "mvn compile" on the client gives errors.

"Could not find artifact org.apache.tez:tez:jar:0.8.0-SNAPSHOT -> [Help 1]"


I am not able to install tez libraries to the local maven repo.

Thanks
Raajay

Re: Add tez dependency

Posted by Raajay <ra...@gmail.com>.
That worked! Thanks!


- Raajay

On Tue, Sep 1, 2015 at 2:51 PM, Hitesh Shah <hi...@apache.org> wrote:

> You need to add tez-api as a dependency i.e set artifactId to tez-api.
>
> Also, you are better off using a released version as a dependency e.g
> 0.7.0 instead of a SNAPSHOT which will change regularly.
>
> β€” Hitesh
>
> On Sep 1, 2015, at 12:40 PM, Raajay <ra...@gmail.com> wrote:
>
> > How to add Tez as a dependency to another project ?
> >
> > I have a Tez client in a separate project and want to use Tez classes in
> it. I added the dependency to pom.xml for the application project as below
> >
> >  <dependency>
> >       <groupId>org.apache.tez</groupId>
> >       <artifactId>tez</artifactId>
> >       <version>0.8.0-SNAPSHOT</version>
> >     </dependency>
> >
> >
> > The commmand "mvn compile" on the client gives errors.
> >
> > "Could not find artifact org.apache.tez:tez:jar:0.8.0-SNAPSHOT -> [Help
> 1]"
> >
> >
> > I am not able to install tez libraries to the local maven repo.
> >
> > Thanks
> > Raajay
>
>

Re: Add tez dependency

Posted by Hitesh Shah <hi...@apache.org>.
You need to add tez-api as a dependency i.e set artifactId to tez-api.

Also, you are better off using a released version as a dependency e.g 0.7.0 instead of a SNAPSHOT which will change regularly.

β€” Hitesh 

On Sep 1, 2015, at 12:40 PM, Raajay <ra...@gmail.com> wrote:

> How to add Tez as a dependency to another project ? 
> 
> I have a Tez client in a separate project and want to use Tez classes in it. I added the dependency to pom.xml for the application project as below
> 
>  <dependency>
>       <groupId>org.apache.tez</groupId>
>       <artifactId>tez</artifactId>
>       <version>0.8.0-SNAPSHOT</version>
>     </dependency>
> 
> 
> The commmand "mvn compile" on the client gives errors.
> 
> "Could not find artifact org.apache.tez:tez:jar:0.8.0-SNAPSHOT -> [Help 1]"
> 
> 
> I am not able to install tez libraries to the local maven repo. 
> 
> Thanks
> Raajay


Re: Add tez dependency

Posted by Oleg Zhurakousky <oz...@hortonworks.com>.
There is no β€˜tez’ component. Instead there are:
tez-common
tez-dag
tez-mapreduce

So in your example:
<dependency>
      <groupId>org.apache.tez</groupId>
      <artifactId>tez-common</artifactId>
      <version>0.8.0-SNAPSHOT</version>
  </dependency>

And repeat the same for other tez dependencies as needed.

Oleg

> On Sep 1, 2015, at 3:40 PM, Raajay <ra...@gmail.com> wrote:
> 
> How to add Tez as a dependency to another project ? 
> 
> I have a Tez client in a separate project and want to use Tez classes in it. I added the dependency to pom.xml for the application project as below
> 
>  <dependency>
>       <groupId>org.apache.tez</groupId>
>       <artifactId>tez</artifactId>
>       <version>0.8.0-SNAPSHOT</version>
>     </dependency>
> 
> 
> The commmand "mvn compile" on the client gives errors.
> 
> "Could not find artifact org.apache.tez:tez:jar:0.8.0-SNAPSHOT -> [Help 1]"
> 
> 
> I am not able to install tez libraries to the local maven repo. 
> 
> Thanks
> Raajay