|
|
-
how to compile proto files?
Alejandro Abdelnur 2011-12-08, 19:11
I'm trying to change the build to compile the proto files (instead checking in the generated java files)
However, I'm not able to run protoc successfully.
Tried
$ protoc -Isrc/proto/ --java_out=target/generated-sources/java src/proto/*.proto
but it does not work.
Thanks.
Alejandro
-
Re: how to compile proto files?
Suresh Srinivas 2011-12-09, 07:46
Under hadoop-hdfs/src I run: Protoc -I=proto proto/<file>.proto --java_out main/src
On Thursday, December 8, 2011, Alejandro Abdelnur <[EMAIL PROTECTED]> wrote: > I'm trying to change the build to compile the proto files (instead checking > in the generated java files) > > However, I'm not able to run protoc successfully. > > Tried > > $ protoc -Isrc/proto/ --java_out=target/generated-sources/java > src/proto/*.proto > > but it does not work. > > Thanks. > > Alejandro >
-
Re: how to compile proto files?
Alejandro Abdelnur 2011-12-09, 18:14
Suresh,
One proto file at the time works, but doing *.proto fails complaining about duplicate definitions.
Thxs.
Alejandro
On Thu, Dec 8, 2011 at 11:46 PM, Suresh Srinivas <[EMAIL PROTECTED]>wrote:
> Under hadoop-hdfs/src I run: > Protoc -I=proto proto/<file>.proto --java_out main/src > > > > On Thursday, December 8, 2011, Alejandro Abdelnur <[EMAIL PROTECTED]> > wrote: > > I'm trying to change the build to compile the proto files (instead > checking > > in the generated java files) > > > > However, I'm not able to run protoc successfully. > > > > Tried > > > > $ protoc -Isrc/proto/ --java_out=target/generated-sources/java > > src/proto/*.proto > > > > but it does not work. > > > > Thanks. > > > > Alejandro > > >
-
Re: how to compile proto files?
Suresh Srinivas 2011-12-09, 18:33
I missed that. I do not if you can do that. BTW yarn generates files using protoc. It might be a good idea to look at their build.
I have a jira opened to address this issue, HDFS-2578. Feel free to assign it to yourself, if you want to work on it.
On Fri, Dec 9, 2011 at 10:14 AM, Alejandro Abdelnur <[EMAIL PROTECTED]>wrote:
> Suresh, > > One proto file at the time works, but doing *.proto fails complaining about > duplicate definitions. > > Thxs. > > Alejandro > > On Thu, Dec 8, 2011 at 11:46 PM, Suresh Srinivas <[EMAIL PROTECTED] > >wrote: > > > Under hadoop-hdfs/src I run: > > Protoc -I=proto proto/<file>.proto --java_out main/src > > > > > > > > On Thursday, December 8, 2011, Alejandro Abdelnur <[EMAIL PROTECTED]> > > wrote: > > > I'm trying to change the build to compile the proto files (instead > > checking > > > in the generated java files) > > > > > > However, I'm not able to run protoc successfully. > > > > > > Tried > > > > > > $ protoc -Isrc/proto/ --java_out=target/generated-sources/java > > > src/proto/*.proto > > > > > > but it does not work. > > > > > > Thanks. > > > > > > Alejandro > > > > > >
|
|