[protobuf] proto3 backward compatibility problem

2015-09-06 Thread sam sun
I use proto3 to log user event and then run a mapreduce to stat same metrics. But it reports an error: Exception in thread "Thread-2" java.lang.NoSuchMethodError: org.apache.hadoop.yarn.proto.YarnProtos$LocalResourceProto.hashLong(J)I at

[protobuf] protobuf3 backward compatibility

2015-09-06 Thread sam sun
I used proto3 to serialize events, and when i run mapreduce to read it , an error was raised: java.lang.NoSuchMethodError: org.apache.hadoop.yarn.proto.YarnProtos$LocalResourceProto.hashLong(J)I at org.apache.hadoop.yarn.proto.YarnProtos$LocalResourceProto.hashCode The problem is that i need

Re: [protobuf] proto3 backward compatibility problem

2015-09-07 Thread sam sun
proto2 has been widely used in opensource system like yarn, hbase, etc. 在 2015年9月7日星期一 UTC+8下午2:31:04,Feng Xiao写道: > > On Sat, Sep 5, 2015 at 9:08 PM, sam sun <sun...@gmail.com > > wrote: > >> I use proto3 to log user event and then run a mapreduce to stat same &g

Re: [protobuf] proto3 backward compatibility problem

2015-09-14 Thread sam sun
think it's very import to keep full backward compatibility with code generated by proto2 since so many widely used opensource libs depends on protobuf as i have mentioned before, especially protobuf2.5. Thanks 在 2015年9月7日星期一 UTC+8下午3:05:50,sam sun写道: > > I knew it, because yarn depends on

[protobuf] JsonFormat parser use camel field name in proto3 beta1

2015-09-24 Thread sam sun
I have a proto: message Person { string user_id; } and write a json: { "user_id" : "123" } I try to use JsonFormat.Parser to parse the json, but it failed. I found JsonFormat will call fieldNameToCamelName. I'm really confused. If the parser in java required camel fieldname, the

[protobuf] protobuf object-c GPBTypeString not found

2015-12-03 Thread sam sun
hi~ I try to use protobuf in object c env, but it failed because the missing of the GPBTypeString, GPBTypeEnum ..., how to fix it ? Thanks in advance. -- You received this message because you are subscribed to the Google Groups "Protocol Buffers" group. To unsubscribe from this group and stop

[protobuf] Re: protobuf object-c GPBTypeString not found

2015-12-03 Thread sam sun
GPBDataTypeString rather than GPBTypeString can be found in GPBRuntimeTypes.h, so i think it's a bug ? 在 2015年12月3日星期四 UTC+8下午6:33:19,sam sun写道: > > hi~ I try to use protobuf in object c env, but it failed because the > missing of the GPBTypeString, GPBTypeEnum ..., how to fix it

[protobuf] Re: protobuf object-c GPBTypeString not found

2015-12-10 Thread sam sun
done. Thanks. 在 2015年12月5日星期六 UTC+8上午7:42:40,Feng Xiao写道: > > Could you file an issue on protobuf github site? > > On Thursday, December 3, 2015 at 3:14:11 AM UTC-8, sam sun wrote: >> >> GPBDataTypeString rather than GPBTypeString can be found in >> GPBRuntime