TZer

Results 18 comments of TZer

大部分照着撸完,最近刚开始学go,非常感谢大佬提供的项目练手,虽然还停留在比较迷糊的状态,但是总体上是有了一个了解,学到了挺多东西,日后会重新对项目整体进行一个思考并且对一些模块进行封装,改进并且建立自己的rpc体系框架,再次感谢大佬!

``` switch protocol { case "http": return DialHTTP("tcp", addr, opts...) ``` 明明是http请求为什么在dialhttp用的还是tcp

> @wilgx0 > > @ppd0705 > > 请教一下,不是太理解支持HTTP协议的意思。看起来是建立tcp连接后客户端发送了一个HTTP包(CONNECT方法)给服务端,之后的客户端的RPC请求应该就是普通的tcp包了? > > 谈一下我个人的看法, http协议从应用层编程的角度,我把他简单的理解成一个种数据格式, 服务器端和客服端之间的请求和响应需要按照这种数据格式来发送数据,数据格式详见:https://www.runoob.com/http/http-messages.html。 HTTP协议基于tpc但是它在应用层是感知不到TCP的存在的。 所以不存在先发了一个http包,之后的请求应该是tcp包的说法。兔老大这里只是用http 协议完成了一个握手的过程,然后在使用自己的定义的协议(详见Day1 服务端与消息编码 中的通信过程)来进行双方的通讯。 刚刚开始码的时候一样有疑惑,先说我自己的结论,添加http支持是为了支持不同路径提供不同的服务,至于你说的先建立一个tcp请求再发送http connect方法似乎是connect方法一个常见的操作流程,我在这篇文章里面找到了相似的地方https://www.jianshu.com/p/54357cdd4736,connect方法被服务器接收到之后,劫持了conn,之后就只是tcp传输了,和楼上说的connect只是完成了一个握手的过程

same problem when using spark operator, it's weird why the code does not throw anything when configmap is not created

As @pasdoy mentioned, tolerations is patch in webhooks, enable it in your values.yaml, this issuse can be closed

This is a spark-on-k8s issuse, was described in [Unable to Mount ConfigMap in Driver Pod](https://issues.apache.org/jira/browse/SPARK-44050), this pr [add retry config when creating Kubernetes resources](https://github.com/apache/spark/pull/45911) try to resolve this issuse by...

Same as [Unable to assign environment variables](https://github.com/kubeflow/spark-operator/issues/2031), check your webhook first @focode

Similar issuse as [add retry config](https://github.com/apache/spark/pull/45911), [The Driver in a Scheduled Spark Applications keeps getting stuck in ContainerCreating state due to missing ConfigMap](https://github.com/kubeflow/spark-operator/issues/1828) which was described in [Unable to Mount...

Hi @liangyouze, I met the same issuse, I like to know if the problem occurs in using spark operator or spark-submit directly, is there anything in consle output?

> > same problem when using spark operator, it's weird why the code does not throw anything when configmap is not created > > When using spark-submit, there is no...