Re: [grpc-io] Re: c++ quickstart broken

2020-02-27 Thread Patrice Chalin
Got it.

On Thursday, February 27, 2020 at 7:52:47 PM UTC-5, Nicolas Noble wrote:
>
> We should direct people towards Bazel as much as possible for the 
> quickstart, especially since the ./tools/bazel script should be fine for 
> Linux and windows even if Bazel isn't installed. 
>
> On Thu, Feb 27, 2020, 16:07 Patrice Chalin > 
> wrote:
>
>> Hi Philip,
>>
>> I've started reviewing the grpc.io guides, the Quick Start pages in 
>> particular.
>>
>> Would you mind opening issue(s) here: 
>> https://github.com/grpc/grpc.io/issues/new ? I'll take a look as soon as 
>> I can. If you'd rather that I create the issues, let me know, I'd be glad 
>> to do so.
>>
>> Thanks,
>> Patrice
>>
>> On Thursday, February 27, 2020 at 6:32:07 PM UTC-5, 
>> phi...@mulcahyfamily.org wrote:
>>>
>>> 1) https://grpc.io/docs/quickstart/cpp/ says "follow the instructions 
>>> to install gRPC C++ via make", but the linked page leads with bazel (with a 
>>> secondary reference to cmake).
>>> 2) The linked page: 
>>> https://github.com/grpc/grpc/blob/master/src/cpp/README.md#make doesn't 
>>> work. I think it may be because http_archive has been moved/deprecated but 
>>> the rules don't include the relevant spell to import it - see 
>>> https://stackoverflow.com/questions/56229865/build-breaking-after-bazel-upgrade
>>>
>>> The general impression is that no-one who knows what they're doing has 
>>> tried this out for a while (for c++ at least) and that you may be scaring 
>>> off a bunch of potential contributors.
>>> IF I get it working, would some PRs for the docs be of interest?
>>>
>>> Yours,
>>>
>>> Philip
>>>
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "grpc.io" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to grp...@googlegroups.com .
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/grpc-io/644c24ae-65de-4c4b-8b3d-282d7c77507f%40googlegroups.com
>>  
>> 
>> .
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"grpc.io" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to grpc-io+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/grpc-io/5b14f7c5-2cac-46da-80c0-9df86f8ea608%40googlegroups.com.


Re: [grpc-io] Re: c++ quickstart broken

2020-02-27 Thread Nicolas Noble
We should direct people towards Bazel as much as possible for the
quickstart, especially since the ./tools/bazel script should be fine for
Linux and windows even if Bazel isn't installed.

On Thu, Feb 27, 2020, 16:07 Patrice Chalin  wrote:

> Hi Philip,
>
> I've started reviewing the grpc.io guides, the Quick Start pages in
> particular.
>
> Would you mind opening issue(s) here:
> https://github.com/grpc/grpc.io/issues/new ? I'll take a look as soon as
> I can. If you'd rather that I create the issues, let me know, I'd be glad
> to do so.
>
> Thanks,
> Patrice
>
> On Thursday, February 27, 2020 at 6:32:07 PM UTC-5,
> phi...@mulcahyfamily.org wrote:
>>
>> 1) https://grpc.io/docs/quickstart/cpp/ says "follow the instructions to
>> install gRPC C++ via make", but the linked page leads with bazel (with a
>> secondary reference to cmake).
>> 2) The linked page:
>> https://github.com/grpc/grpc/blob/master/src/cpp/README.md#make doesn't
>> work. I think it may be because http_archive has been moved/deprecated but
>> the rules don't include the relevant spell to import it - see
>> https://stackoverflow.com/questions/56229865/build-breaking-after-bazel-upgrade
>>
>> The general impression is that no-one who knows what they're doing has
>> tried this out for a while (for c++ at least) and that you may be scaring
>> off a bunch of potential contributors.
>> IF I get it working, would some PRs for the docs be of interest?
>>
>> Yours,
>>
>> Philip
>>
> --
> You received this message because you are subscribed to the Google Groups "
> grpc.io" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to grpc-io+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/grpc-io/644c24ae-65de-4c4b-8b3d-282d7c77507f%40googlegroups.com
> 
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"grpc.io" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to grpc-io+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/grpc-io/CAEvr0PEx8qxEQSZr9UK4_VrPMjbSpeZCy77ALqFdpvcjTA0eqw%40mail.gmail.com.


[grpc-io] Re: c++ quickstart broken

2020-02-27 Thread Patrice Chalin
Hi Philip,

I've started reviewing the grpc.io guides, the Quick Start pages in 
particular.

Would you mind opening issue(s) here: 
https://github.com/grpc/grpc.io/issues/new ? I'll take a look as soon as I 
can. If you'd rather that I create the issues, let me know, I'd be glad to 
do so.

Thanks,
Patrice

On Thursday, February 27, 2020 at 6:32:07 PM UTC-5, 
phi...@mulcahyfamily.org wrote:
>
> 1) https://grpc.io/docs/quickstart/cpp/ says "follow the instructions to 
> install gRPC C++ via make", but the linked page leads with bazel (with a 
> secondary reference to cmake).
> 2) The linked page: 
> https://github.com/grpc/grpc/blob/master/src/cpp/README.md#make doesn't 
> work. I think it may be because http_archive has been moved/deprecated but 
> the rules don't include the relevant spell to import it - see 
> https://stackoverflow.com/questions/56229865/build-breaking-after-bazel-upgrade
>
> The general impression is that no-one who knows what they're doing has 
> tried this out for a while (for c++ at least) and that you may be scaring 
> off a bunch of potential contributors.
> IF I get it working, would some PRs for the docs be of interest?
>
> Yours,
>
> Philip
>

-- 
You received this message because you are subscribed to the Google Groups 
"grpc.io" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to grpc-io+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/grpc-io/644c24ae-65de-4c4b-8b3d-282d7c77507f%40googlegroups.com.


[grpc-io] c++ quickstart broken

2020-02-27 Thread philip
1) https://grpc.io/docs/quickstart/cpp/ says "follow the instructions to 
install gRPC C++ via make", but the linked page leads with bazel (with a 
secondary reference to cmake).
2) The linked page: 
https://github.com/grpc/grpc/blob/master/src/cpp/README.md#make doesn't 
work. I think it may be because http_archive has been moved/deprecated but 
the rules don't include the relevant spell to import it - see 
https://stackoverflow.com/questions/56229865/build-breaking-after-bazel-upgrade

The general impression is that no-one who knows what they're doing has 
tried this out for a while (for c++ at least) and that you may be scaring 
off a bunch of potential contributors.
IF I get it working, would some PRs for the docs be of interest?

Yours,

Philip

-- 
You received this message because you are subscribed to the Google Groups 
"grpc.io" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to grpc-io+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/grpc-io/a13d4456-fbb6-4b89-922f-69672804a07f%40googlegroups.com.


[grpc-io] Re: Using google.cloud.ndb (in Python 3.6.6) getting RESOURCE_EXHAUSTED: gRPC message exceeds maximum size 4194304: 13208641 while trying to write data to Google Cloud Datastore

2020-02-27 Thread 'Lidi Zheng' via grpc.io
gRPC has a 4GB hard limit for the size of message, and ProtoBuf has a 2GB 
hard limit.

I wonder what's the real size of the `chunks`, sys.getsizeof 
 is not 
accounting for all content in the container.

If possible, can you break the data into multiple messages?

On Thursday, February 27, 2020 at 6:11:52 AM UTC-8 sudipt...@decagames.com 
wrote:

> Getting error in Python 3.6.6 where I am trying to write data using 
> ndb.put_multi(chunks) where *ndb* is *google.cloud.ndb* from  
> google-cloud-ndb==1.0.1 
>
>from google.cloud import ndb
>
> We are getting the following error while doing* ndb.put_multi(chunks)*. 
> where we have sys.getsizeof(chunks) is 200 (*bytes)*
>
> [datastore] Feb 27, 2020 6:53:21 PM 
>> io.grpc.netty.NettyServerStream$TransportState deframeFailed
>>
>> [datastore] WARNING: Exception processing message
>>
>> [datastore] io.grpc.StatusRuntimeException: RESOURCE_EXHAUSTED: *gRPC 
>> message exceeds maximum size 4194304: 13208641*
>>
>> [datastore] at io.grpc.Status.asRuntimeException(Status.java:521)
>>
>> [datastore] at 
>> io.grpc.internal.MessageDeframer.processHeader(MessageDeframer.java:387)
>>
>> [datastore] at 
>> io.grpc.internal.MessageDeframer.deliver(MessageDeframer.java:267)
>>
>> [datastore] at 
>> io.grpc.internal.MessageDeframer.request(MessageDeframer.java:161)
>>
>> [datastore] at 
>> io.grpc.internal.AbstractStream$TransportState.requestMessagesFromDeframer(AbstractStream.java:205)
>>
>> [datastore] at 
>> io.grpc.netty.NettyServerStream$Sink$1.run(NettyServerStream.java:100)
>>
>> [datastore] at 
>> io.netty.util.concurrent.AbstractEventExecutor.safeExecute(AbstractEventExecutor.java:163)
>>
>> [datastore] at 
>> io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:404)
>>
>> [datastore] at 
>> io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:474)
>>
>> [datastore] at 
>> io.netty.util.concurrent.SingleThreadEventExecutor$5.run(SingleThreadEventExecutor.java:909)
>>
>> [datastore] at 
>> java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
>>
>> [datastore] at 
>> java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
>>
>> [datastore] at java.base/java.lang.Thread.run(Thread.java:830)
>>
>
> I am running datastore emulator in my local using gcloud beta emulators 
> datastore start command.
>
> Thanks in advance for your help.
>

-- 
You received this message because you are subscribed to the Google Groups 
"grpc.io" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to grpc-io+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/grpc-io/d4e183e1-63c0-461e-a49c-c9b23c0c36a5%40googlegroups.com.


[grpc-io] Using google.cloud.ndb (in Python 3.6.6) getting RESOURCE_EXHAUSTED: gRPC message exceeds maximum size 4194304: 13208641 while trying to write data to Google Cloud Datastore

2020-02-27 Thread sudipta . dhara
Getting error in Python 3.6.6 where I am trying to write data using 
ndb.put_multi(chunks) where *ndb* is *google.cloud.ndb* from  
google-cloud-ndb==1.0.1 

   from google.cloud import ndb

We are getting the following error while doing* ndb.put_multi(chunks)*. 
where we have sys.getsizeof(chunks) is 200 (*bytes)*

[datastore] Feb 27, 2020 6:53:21 PM 
> io.grpc.netty.NettyServerStream$TransportState deframeFailed
>
> [datastore] WARNING: Exception processing message
>
> [datastore] io.grpc.StatusRuntimeException: RESOURCE_EXHAUSTED: *gRPC 
> message exceeds maximum size 4194304: 13208641*
>
> [datastore] at io.grpc.Status.asRuntimeException(Status.java:521)
>
> [datastore] at 
> io.grpc.internal.MessageDeframer.processHeader(MessageDeframer.java:387)
>
> [datastore] at 
> io.grpc.internal.MessageDeframer.deliver(MessageDeframer.java:267)
>
> [datastore] at 
> io.grpc.internal.MessageDeframer.request(MessageDeframer.java:161)
>
> [datastore] at 
> io.grpc.internal.AbstractStream$TransportState.requestMessagesFromDeframer(AbstractStream.java:205)
>
> [datastore] at 
> io.grpc.netty.NettyServerStream$Sink$1.run(NettyServerStream.java:100)
>
> [datastore] at 
> io.netty.util.concurrent.AbstractEventExecutor.safeExecute(AbstractEventExecutor.java:163)
>
> [datastore] at 
> io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:404)
>
> [datastore] at 
> io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:474)
>
> [datastore] at 
> io.netty.util.concurrent.SingleThreadEventExecutor$5.run(SingleThreadEventExecutor.java:909)
>
> [datastore] at 
> java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
>
> [datastore] at 
> java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
>
> [datastore] at java.base/java.lang.Thread.run(Thread.java:830)
>

I am running datastore emulator in my local using gcloud beta emulators 
datastore start command.

Thanks in advance for your help.

-- 
You received this message because you are subscribed to the Google Groups 
"grpc.io" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to grpc-io+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/grpc-io/9a46cc02-b95d-4ae1-8a0a-6d6802274266%40googlegroups.com.


[grpc-io] Re: gRPC binding the socket to a particular interface or device (Something like SO_BINDTODEVICE)

2020-02-27 Thread Abhi Arora
Okay. So we don't have options to set "SO_BINDTODEVICE " or bind to a 
particular IP in C++ for gRPC Client? Both are not available? How about 
gRPC Python Client? We can think to move to gRPC python client.

On Thursday, February 27, 2020 at 12:09:56 AM UTC+5:30, yas...@google.com 
wrote:
>
> gRPC C++ does not have any API to allow the client to bind to a specific 
> IP address at the moment.
>
> On Wednesday, February 26, 2020 at 1:45:15 AM UTC-8 engr.ab...@gmail.com 
> wrote:
>
>> My application communicates with gRPC server. Is there any way for gRPC 
>> client to bind to a particular interface or device? Or can I bind to 
>> particular IP? Will it work? Is there any way?
>>
>> Linux POSIX socket provides SO_BINDTODEVICE option but I am not sure if 
>> gRPC has any application layer method or function to achieve it. I tried 
>> other forums but couldn't find something useful.
>>
>> Is there any workaround to achieve the same thing?
>>
>> On Tuesday, February 25, 2020 at 11:29:45 AM UTC+5:30, Abhi Arora wrote:
>>
>>> I have a Linux Embedded Machine with gRPC cross-compiled for it. I am 
>>> looking to create multiple instances of gRPC each bind to a particular 
>>> interface or device. Linux POSIX socket provides SO_BINDTODEVICE option but 
>>> I am not sure if gRPC has any application layer method or function to 
>>> achieve it. I tried other forums but couldn't find something useful.
>>>
>>> Is there any workaround to achieve the same thing?
>>>
>>> Please help me.
>>>
>>>
>>>

-- 
You received this message because you are subscribed to the Google Groups 
"grpc.io" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to grpc-io+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/grpc-io/f4c0c0f8-3c5c-49a9-aed4-84ab2fa6b3b3%40googlegroups.com.