habase 报错 ERROR: Can't get master address from ZooKeeper; znode data == null 40C

hadoop + zookeeper +hbase 环境
hadoop 和 zookeeper 集群环境都ok,hbase启动之后,查看hbase状态报错
图片说明

网上的各种重启hbase 重启服务 修改配置文件都试过了,解决不了,跪求会的大神指导一下。

/etc/profile配置

    export  JAVA_HOME=/opt/java/jdk1.8.0_201
    export  HADOOP_HOME=/opt/hadoop/hadoop-2.8.0
    export  HADOOP_CONF_DIR=${HADOOP_HOME}/etc/hadoop
    export  HADOOP_COMMON_LIB_NATIVE_DIR=${HADOOP_HOME}/lib/native
    export  HADOOP_OPTS="-Djava.library.path=${HADOOP_HOME}/lib"
    #export  HIVE_HOME=/opt/hive/apache-hive-2.1.1-bin
    #export  HIVE_CONF_DIR=${HIVE_HOME}/conf
    #export  SQOOP_HOME=/opt/sqoop/sqoop-1.4.6.bin__hadoop-2.0.4-alpha
    export  HBASE_HOME=/opt/hbase/hbase-1.4.9
    export  ZK_HOME=/opt/zookeeper/zookeeper-3.4.13
    export  CLASS_PATH=.:${JAVA_HOME}/lib:${HIVE_HOME}/lib:$CLASS_PATH
    export PATH=.:${JAVA_HOME}/bin:${HADOOP_HOME}/bin:${HADOOP_HOME}/sbin:${SPARK_HOME}/bin:${ZOOKEEPER_HOME}/bin:${HIVE_HOME}/bin:${SQOOP_HOME}/bin:${HBASE_HOME}:${ZK_HOME}/bin:$PATH

hbase/conf/hbase.xml 配置

<configuration>
<property>
 <name>hbase.rootdir</name>
 <value>hdfs://hadoop1:9000/hbase</value>
 <description>The directory shared byregion servers.</description>
</property>
 <property>
    <name>hbase.zookeeper.property.dataDir</name>
    <value>/opt/hbase/zk_data</value>
  </property>
<property>
 <name>hbase.zookeeper.property.clientPort</name>
 <value>2181</value>
 <description>Property from ZooKeeper'sconfig zoo.cfg. The port at which the clients will connect.
 </description>
</property>
<property>
 <name>zookeeper.session.timeout</name>
 <value>120000</value>
</property>
<property>
  <name>hbase.zookeeper.property.tickTime</name>
  <value>6000</value>
</property>
<property>
 <name>hbase.zookeeper.quorum</name>
 <value>hadoop1,hadoop2,hadoop3</value>
</property>
<property>
 <name>hbase.tmp.dir</name>
 <value>/root/hbase/tmp</value>
</property>
<property>
 <name>hbase.cluster.distributed</name>
 <value>true</value>
</property>
</configuration>

hbase/conf/conf/hbase-env.sh文件

export HBASE_OPTS="-XX:+UseConcMarkSweepGC"

# Configure PermSize. Only needed in JDK7. You can safely remove it for JDK8+
#export HBASE_MASTER_OPTS="$HBASE_MASTER_OPTS -XX:PermSize=128m -XX:MaxPermSize=128m -XX:ReservedCodeCacheSize=256m"
#export HBASE_REGIONSERVER_OPTS="$HBASE_REGIONSERVER_OPTS -XX:PermSize=128m -XX:MaxPermSize=128m -XX:ReservedCodeCacheSize=256m"
export JAVA_HOME=/opt/java/jdk1.8.0_201
export HADOOP_HOME=/opt/hadoop/hadoop-2.8.0
export HBASE_HOME=/opt/hbase/hbase-1.4.9
export HBASE_CLASSPATH=/opt/hadoop/hadoop-2.8.0/etc/hadoop
export HBASE_PID_DIR=/root/hbase/pids
export HBASE_MANAGES_ZK=false

zookeeper/zoo.cfg 配置文件

tickTime=2000
initLimit=10
syncLimit=5
clientPort=2181
dataDir=/opt/zookeeper/data
dataLogDir=/opt/zookeeper/dataLog
server.1=hadoop1:2886:3881
server.2=hadoop2:2887:3882
server.3=hadoop3:2888:3883
quorumListenOnAllIPs=true

/opt/hadoop/hadoop-2.8.0/etc/hadoop/core-site.xml 文件

<configuration>
<property>

        <name>hadoop.tmp.dir</name>

        <value>/root/hadoop/tmp</value>

        <description>Abase for other temporary directories.</description>

   </property>

   <property>

        <name>fs.default.name</name>

        <value>hdfs://hadoop1:9000</value>

   </property>
</configuration>

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
其他相关推荐
hbase建表失败报错:ERROR: The procedure 22330 is still running

在一次停电后hbase 发生了block丢失的异常,检查后发现是WELs里的两个block处于分裂状态,经过多次修复命令无果后,使用 hdfs fsck -delete 将缺损的删除了,在删除后表ppr数据无法查询 , 正常删表失败后 , 选择了暴力删除 , 将hdfs上的datadir删除,meta表里的记录删除,zookeepercli里/hbase/table/ppr删除,然后进行了集群的重启,重启后在hbase shell里进行了list,没有ppr表了,再次创建出现了如下的报错: ``` hbase(main):001:0> create "ppr" ,"f" ERROR: The procedure 22330 is still running For usage try 'help "create"' Took 669.0389 seconds ``` 经过排查是Regions in Transition中有一个该表的region: 273f6a209c5e2bcad57db5e0e18b4028 ppr OFFLINE 19064 WAITING_TIMEOUT 但是这个region我该怎么删掉,在hdfs都已经把表删了 大神们,求解决方式

试图在hbase中create table1报错

我是hbase的新手,安装了用本地file system的hbase,没有装hadoop/hdfs。 用bin/start-hbase.sh启动了hbase,可以用ps -ef看到HMaster进程,但用 jps | grep HMaster,什么都看不到。然后用bin/hbase shell,试图 create table, 报错: ERROR: Can't get master address from ZooKeeper; znode data == null 怎么处理这个问题呢? 谢谢!

redis:拨打tcp [REDIS ADDRESS] connect:连接被拒绝

<div class="post-text" itemprop="text"> <p>I'm using redigo in go with docker. I have a server that processes incoming events and uses redis for rate limiting. One in every 100k+ connections or so I get the following error:</p> <p><code>redis: dial tcp IP ADDRESS: connect: connection refused</code></p> <p>The configuration is all inside docker using docker-compose. I've got sentry sending me these errors, I was wondering if there were any tweaks/settings I could do to remove/reduce this error</p> <p>My redigo configuration is</p> <pre><code>redis := &amp;redis.Pool{ MaxActive: idleConnections, MaxIdle: idleConnections, Wait: true, Dial: func() (redis.Conn, error) { return redis.Dial("tcp", address, options...) }, } </code></pre> </div>

hbase启动后hmaster进程消失的问题

hadoop-2.4.1+zookeeper-3.4.5(非hbase自带)+hbase-0.96.2-hadoop2 无论执行什么命令,都报一下错: hbase(main):001:0> status ERROR: Can't get master address from ZooKeeper; znode data == null 日志文件 hbase-root-master-master.log: 2014-09-05 10:09:59,705 FATAL [master:master:60000] master.HMaster: Unhandled exception. Starting shutdown. java.net.UnknownHostException: Invalid host name: local host is: (unknown); destination host is: "master":9000; java.net.UnknownHostException; 2014-09-05 10:10:00,707 ERROR [main] master.HMasterCommandLine: Master exiting java.lang.RuntimeException: HMaster Aborted 配置文件 hbase-site.xml <configuration> <property> <name>hbase.rootdir</name> <value>hdfs://master:9000/hbase</value> </property> <property> <name>hbase.cluster.distributed</name> <value>true</value> </property> <property> <name>hbase.master</name> <value>master:60000</value> </property> <property> <name>hbase.zookeeper.quorum</name> <value>master,slave1,slave2</value> </property> </configuration> 配置文件 zoo.cfg # The number of milliseconds of each tick tickTime=2000 # The number of ticks that the initial # synchronization phase can take initLimit=10 # The number of ticks that can pass between # sending a request and getting an acknowledgement syncLimit=5 # the directory where the snapshot is stored. # do not use /tmp for storage, /tmp here is just # example sakes. dataDir=/root/SoftWare/zkdata # the port at which the clients will connect clientPort=2181 server.1=master:2888:3888 server.2=slave1:2888:3888 server.3=slave2:2888:3888 # # Be sure to read the maintenance section of the # administrator guide before turning on autopurge. # # http://zookeeper.apache.org/doc/current/zookeeperAdmin.html#sc_maintenance # # The number of snapshots to retain in dataDir #autopurge.snapRetainCount=3 # Purge task interval in hours # Set to "0" to disable auto purge feature #autopurge.purgeInterval=1 配置文件 core-site.xml <configuration> <property> <name>fs.defaultFS</name> <value>hdfs://master:9000</value> </property> <property> <name>hadoop.tmp.dir</name> <value>file:///home/hadoop/tmp</value> </property> <property> <name>io.file.buffer.size</name> <value>131072</value> </property> </configuration>

npm安装依赖包报128错误

![控制台报错](https://img-ask.csdn.net/upload/201706/20/1497951759_836689.png) 日志: 0 info it worked if it ends with ok 1 verbose cli [ 'C:\\Program Files\\nodejs\\node.exe', 1 verbose cli 'C:\\Users\\qinwy\\AppData\\Roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js', 1 verbose cli 'install', 1 verbose cli '--save' ] 2 info using npm@5.0.3 3 info using node@v6.11.0 4 verbose npm-session 74296ddf7f070f99 5 silly install runPreinstallTopLevelLifecycles 6 silly preinstall app@1.0.0 7 info lifecycle app@1.0.0~preinstall: app@1.0.0 8 silly lifecycle app@1.0.0~preinstall: no script for preinstall, continuing 9 silly install loadCurrentTree 10 silly install readLocalPackageData 11 silly install loadIdealTree 12 silly install cloneCurrentTreeToIdealTree 13 silly install loadShrinkwrap 14 silly pacote trying https://registry.npmjs.org/fsevents/-/fsevents-1.1.2.tgz by hash: sha512-Sn44E5wQW4bTHXvQmvSHwqbuiXtduD6Rrjm2ZtUEGbyrig+nUH3t/QD4M4/ZXViY556TBpRgZkHLDx3JxPwxiw== 15 silly pacote https://registry.npmjs.org/fsevents/-/fsevents-1.1.2.tgz extracted to C:\Users\qinwy\AppData\Local\Temp\npm-5380-30980156\unpack-f8d560a0 by content address 2509ms 16 silly addBundled read tarball 17 silly cleanup remove extracted module 18 http fetch GET 304 http://registry.npm.taobao.org/jspdf/download/jspdf-1.3.3.tgz 327ms (from cache) 19 silly pacote remote manifest for jspdf@http://registry.npm.taobao.org/jspdf/download/jspdf-1.3.3.tgz fetched in 384ms 20 silly fetchPackageMetaData error for adler32cs@git+https://github.com/chick307/adler32cs.js.git#master exited with error code: 128 21 verbose stack Error: exited with error code: 128 21 verbose stack at ChildProcess.onexit (C:\Users\qinwy\AppData\Roaming\npm\node_modules\npm\node_modules\mississippi\node_modules\end-of-stream\index.js:39:36) 21 verbose stack at emitTwo (events.js:106:13) 21 verbose stack at ChildProcess.emit (events.js:191:7) 21 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:215:12) 22 verbose cwd F:\works\kudai_person\app 23 verbose Windows_NT 10.0.14393 24 verbose argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\qinwy\\AppData\\Roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js" "install" "--save" 25 verbose node v6.11.0 26 verbose npm v5.0.3 27 error exited with error code: 128 28 verbose exit [ 1, true ]

使用gRPC响应服务的Google Cloud Endpoints Sample for Go失败

<div class="post-text" itemprop="text"> <p>I am new using cloud platform. I trying to deploy a service using go and grpc. I found this tutorial <a href="https://github.com/GoogleCloudPlatform/golang-samples/tree/master/endpoints/getting-started-grpc" rel="nofollow noreferrer">https://github.com/GoogleCloudPlatform/golang-samples/tree/master/endpoints/getting-started-grpc</a> and everything was complete successful until I have to call the service.</p> <p>In the moment that I use the client to call the service I get this error:</p> <p><code>could not greet: rpc error: code = Unavailable desc = all SubConns are in TransientFailure, latest connection error: connection error: desc = "transport: Error while dialing dial tcp 35.199.74.154:80: connectex: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.</code></p> <p>I would like to know if someone can help me with that problem.</p> </div>

运行时错误:无效的内存地址或nil指针取消引用,grpc golang示例

<div class="post-text" itemprop="text"> <p>I am trying to implement simple grpc server and client model with only method for server side streaming. I am fallowing the <a href="https://github.com/grpc/grpc-go/blob/master/examples/route_guide/" rel="nofollow">route guide example in offical repo</a>. When trying to run I am getting this error from server side</p> <pre><code>panic: runtime error: invalid memory address or nil pointer dereference [signal 0xb code=0x1 addr=0x0 pc=0x4011fc] goroutine 3 [running]: panic(0x878c80, 0xc82000a150) /usr/local/go/src/runtime/panic.go:481 +0x3e6 main.(*server).Podips(0xc820136188, 0xc82000aa40, 0x7f1179b9f530, 0xc82000aa90, 0x0, 0x0) /home/tcs/gowork/src/poc/test/server.go:22 +0x1fc poc/test/pb._Getips_Podips_Handler(0x856f00, 0xc820136188, 0x7f1179b9f438, 0xc8201da000, 0x0, 0x0) /home/tcs/gowork/src/poc/test/pb/getip.pb.go:129 +0x175 google.golang.org/grpc.(*Server).processStreamingRPC(0xc82019a640, 0x7f1179b245a0, 0xc8201ca000, 0xc8201d0000, 0xc820169440, 0xb7afa0, 0xc82016a570, 0x0, 0x0) /home/tcs/gowork/src/google.golang.org/grpc/server.go:689 +0x489 google.golang.org/grpc.(*Server).handleStream(0xc82019a640, 0x7f1179b245a0, 0xc8201ca000, 0xc8201d0000, 0xc82016a570) /home/tcs/gowork/src/google.golang.org/grpc/server.go:773 +0x1151 google.golang.org/grpc.(*Server).serveStreams.func1.1(0xc820133020, 0xc82019a640, 0x7f1179b245a0, 0xc8201ca000, 0xc8201d0000) /home/tcs/gowork/src/google.golang.org/grpc/server.go:422 +0xa0 created by google.golang.org/grpc.(*Server).serveStreams.func1 /home/tcs/gowork/src/google.golang.org/grpc/server.go:423 +0x9a exit status 2 </code></pre> <p>and this from client side</p> <pre><code>2016/09/29 22:31:37 transport: http2Client.notifyError got notified that the client transport was broken EOF. 2016/09/29 22:31:37 &amp;{0xc820192b40}.Podips(_) = _, rpc error: code = 13 desc = transport is closing exit status 1 </code></pre> <p>server.go</p> <pre><code>package main import ( "net" "flag" "fmt" "google.golang.org/grpc/grpclog" "google.golang.org/grpc" pb "poc/test/pb" ) var port = flag.Int("port", 10000, "The server port") type server struct{ ip *pb.Ips } func (s *server) Podips(n *pb.Request, stream pb.Getips_PodipsServer) (error){ res := [3]string{"firstIP", "secondIp", "thirdIP"} for _, v := range res { s.ip.Ip = v if s.ip == nil{ if err := stream.Send(s.ip); err != nil { return err } } } return nil } func main(){ flag.Parse() lis, err := net.Listen("tcp", fmt.Sprintf(":%d", *port)) if err != nil { grpclog.Fatalf("failed to listen: %v", err) } grpcServer := grpc.NewServer() grpclog.Println("server descrption:%v", grpcServer) pb.RegisterGetipsServer(grpcServer, new(server)) grpcServer.Serve(lis) } </code></pre> <p>some.proto file</p> <pre><code>syntax = "proto3"; package getips; service Getips { rpc Podips (Request) returns (stream Ips){} } message Request { string req = 1; } message Ips { string ip = 1; } </code></pre> <p>I am going through few questions in stack over flow about nil pointer error I found this peice of code is culprit</p> <pre><code>s.ip.Ip = v if s.ip == nil{ if err := stream.Send(s.ip); err != nil { return err } </code></pre> <p>I don't know how to solve this and I doubt I am implementing it wrong way. Any help would be greatful. Thanks</p> </div>

PHP邮件错误:SMTP连接()失败

<div class="post-text" itemprop="text"> <p>I had not any problems before, but i have checked today and i get the following error: <strong>Mailer Error: SMTP connect() failed</strong>. <a href="https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting" rel="nofollow noreferrer">https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting</a>. I run my website on <strong>Heroku app</strong>. I use the latest version of <strong>php Mailer</strong> with <strong>google smtp</strong> servers. Are there any alternative smtp servers i can use? Here is my Script: </p> <pre><code>&lt;?php require 'PHPMailer-master/PHPMailerAutoload.php'; if(empty($_POST['Email'])){ $_POST['Email']= ""; } if(empty($_POST['Name'])){ $_POST['Name']= ""; } if(empty($_POST['Subject'])){ $_POST['Subject']= ""; } if(empty($_POST['message'])){ $_POST['message']= ""; } if (isset($_POST["message"]) &amp;&amp; !empty($_POST["message"])) { $mymail=smtpmailer("webdominar1@gmail.com",$_POST['Email'], $_POST['Name'], $_POST['Subject'], $_POST['message']); }else{ header('Location: http://webdominar.xyz'); exit(); } function smtpmailer($to, $from, $from_name, $subject, $body) { $mail = new PHPMailer; $mail-&gt;isSMTP(); $mail-&gt;Debugoutput = 'html'; $mail-&gt;Host = 'smtp.gmail.com'; $mail-&gt;Port = 587; $mail-&gt;SMTPSecure = 'tls'; $mail-&gt;SMTPAuth = true; $mail-&gt;Username = 'test@gmail.com'; $mail-&gt;Password = '1234'; $mail-&gt;SetFrom($from, $from_name); $mail-&gt;Subject = "Webdominar Contact form ~Name: $from_name ~ subject: $subject on http://webdominar.xyz "; $mail-&gt;CharSet = 'UTF-8'; $mail-&gt;isHTML(true); // Set email format to HTML $mail-&gt;Body = "blabla" ; //end body $mail-&gt;AddAddress($to); //send the message, check for errors if (!$mail-&gt;send()) { echo "Mailer Error: " . $mail-&gt;ErrorInfo; } else { echo "Well done $from_name, your message has been sent! We will reply to the following email: $from" . "&lt;br&gt;Your Message: $body"; } } //end function smtpmailer ?&gt; </code></pre> </div>

安装Kubernetes Go客户端

<div class="post-text" itemprop="text"> <p>I'm trying to install Go Client for Kubernetes. I'm following that <a href="https://github.com/kubernetes/client-go/blob/master/INSTALL.md" rel="nofollow noreferrer"> installation link</a>. Here is the output:</p> <pre><code>root@c085ca4b6124:/app# GIT_TERMINAL_PROMPT=1 go get -v k8s.io/client/go/... Fetching https://k8s.io/client/go?go-get=1 Parsing meta tags from https://k8s.io/client/go?go-get=1 (status code 200) get "k8s.io/client/go": found meta tag get.metaImport{Prefix:"k8s.io/client", VCS:"git", RepoRoot:"https://github.com/kubernetes/client"} at https://k8s.io/client/go?go-get=1 get "k8s.io/client/go": verifying non-authoritative meta tag Fetching https://k8s.io/client?go-get=1 Parsing meta tags from https://k8s.io/client?go-get=1 (status code 200) k8s.io/client (download) Username for 'https://github.com': *** Password for 'https://***@github.com': *** # cd .; git clone https://github.com/kubernetes/client /go/src/k8s.io/client Cloning into '/go/src/k8s.io/client'... remote: Repository not found. fatal: repository 'https://github.com/kubernetes/client/' not found package k8s.io/client/go/...: exit status 128 root@c085ca4b6124:/app# </code></pre> <p>I can't really get what I'm doing wrong. </p> </div>

Windows版Mysql服务意外停止error number 23

MySQL日志如下:求帮助: 场景:查询一段很耗的sql会引起mysql服务非正常关闭(手动重启是ok的),如下异常日志,mysql需要怎么设置; mysql 配置文件: ![图片说明](https://img-ask.csdn.net/upload/201804/26/1524711838_399410.png) 2018-04-26T02:15:05.557394Z 24 [ERROR] InnoDB: Operating system error number 23 in a file operation. 2018-04-26T02:15:05.557394Z 24 [Note] InnoDB: Some operating system error numbers are described at http://dev.mysql.com/doc/refman/5.7/en/operating-system-error-codes.html 2018-04-26T02:15:05.572994Z 24 [ERROR] InnoDB: File .\mfg_db\sn_scan_ht.ibd: 'Windows aio' returned OS error 123. Cannot continue operation 2018-04-26T02:15:05.572994Z 24 [ERROR] InnoDB: Cannot continue operation. 2018-04-26T02:15:07.772598Z 0 [Note] InnoDB: FTS optimize thread exiting. 2018-04-26T02:16:54.819986Z 24 [Warning] InnoDB: 13 threads created by InnoDB had not exited at shutdown! 2018-04-26T02:17:11.605615Z 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details). 2018-04-26T02:17:11.605615Z 0 [Warning] 'NO_ZERO_DATE', 'NO_ZERO_IN_DATE' and 'ERROR_FOR_DIVISION_BY_ZERO' sql modes should be used with strict mode. They will be merged with strict mode in a future release. 2018-04-26T02:17:11.605615Z 0 [Warning] 'NO_AUTO_CREATE_USER' sql mode was not set. 2018-04-26T02:17:11.605615Z 0 [Note] --secure-file-priv is set to NULL. Operations related to importing and exporting data are disabled 2018-04-26T02:17:11.605615Z 0 [Note] MySQL (mysqld 5.7.17-log) starting as process 10868 ... 2018-04-26T02:17:11.621215Z 0 [Note] InnoDB: Mutexes and rw_locks use Windows interlocked functions 2018-04-26T02:17:11.621215Z 0 [Note] InnoDB: Uses event mutexes 2018-04-26T02:17:11.621215Z 0 [Note] InnoDB: _mm_lfence() and _mm_sfence() are used for memory barrier 2018-04-26T02:17:11.621215Z 0 [Note] InnoDB: Compressed tables use zlib 1.2.3 2018-04-26T02:17:11.621215Z 0 [Note] InnoDB: Number of pools: 1 2018-04-26T02:17:11.636815Z 0 [Note] InnoDB: Not using CPU crc32 instructions 2018-04-26T02:17:11.636815Z 0 [Note] InnoDB: Initializing buffer pool, total size = 128M, instances = 1, chunk size = 128M 2018-04-26T02:17:11.652415Z 0 [Note] InnoDB: Completed initialization of buffer pool 2018-04-26T02:17:11.730415Z 0 [Note] InnoDB: Highest supported file format is Barracuda. 2018-04-26T02:17:11.746015Z 0 [Note] InnoDB: Log scan progressed past the checkpoint lsn 22526427804 2018-04-26T02:17:11.746015Z 0 [Note] InnoDB: Doing recovery: scanned up to log sequence number 22526427813 2018-04-26T02:17:11.746015Z 0 [Note] InnoDB: Doing recovery: scanned up to log sequence number 22526427813 2018-04-26T02:17:11.761615Z 0 [Note] InnoDB: Database was not shutdown normally! 2018-04-26T02:17:11.761615Z 0 [Note] InnoDB: Starting crash recovery. 2018-04-26T02:17:11.886416Z 0 [Note] InnoDB: Last MySQL binlog file position 0 1457173, file name master-bin.000024 2018-04-26T02:17:12.089216Z 0 [Note] InnoDB: Removed temporary tablespace data file: "ibtmp1" 2018-04-26T02:17:12.089216Z 0 [Note] InnoDB: Creating shared tablespace for temporary tables 2018-04-26T02:17:12.089216Z 0 [Note] InnoDB: Setting file '.\ibtmp1' size to 12 MB. Physically writing the file full; Please wait ... 2018-04-26T02:17:12.104816Z 0 [Note] InnoDB: File '.\ibtmp1' size is now 12 MB. 2018-04-26T02:17:12.104816Z 0 [Note] InnoDB: 96 redo rollback segment(s) found. 96 redo rollback segment(s) are active. 2018-04-26T02:17:12.104816Z 0 [Note] InnoDB: 32 non-redo rollback segment(s) are active. 2018-04-26T02:17:12.104816Z 0 [Note] InnoDB: 5.7.17 started; log sequence number 22526427813 2018-04-26T02:17:12.104816Z 0 [Note] InnoDB: Loading buffer pool(s) from E:\DB_Data\MySql\ib_buffer_pool 2018-04-26T02:17:12.104816Z 0 [Note] Plugin 'FEDERATED' is disabled. 2018-04-26T02:17:12.120416Z 0 [Note] Recovering after a crash using master-bin 2018-04-26T02:17:12.151616Z 0 [Note] Starting crash recovery... 2018-04-26T02:17:12.151616Z 0 [Note] Crash recovery finished. 2018-04-26T02:17:12.214016Z 0 [Warning] Failed to set up SSL because of the following SSL library error: SSL context is not usable without certificate and private key 2018-04-26T02:17:12.214016Z 0 [Note] Server hostname (bind-address): '*'; port: 3306 2018-04-26T02:17:12.214016Z 0 [Note] IPv6 is available. 2018-04-26T02:17:12.214016Z 0 [Note] - '::' resolves to '::'; 2018-04-26T02:17:12.214016Z 0 [Note] Server socket created on IP: '::'. 2018-04-26T02:17:12.713217Z 0 [Note] Event Scheduler: Loaded 0 events 2018-04-26T02:17:12.713217Z 0 [Note] Executing 'SELECT * FROM INFORMATION_SCHEMA.TABLES;' to get a list of tables using the deprecated partition engine. You may use the startup option '--disable-partition-engine-check' to skip this check. 2018-04-26T02:17:12.713217Z 0 [Note] Beginning of list of non-natively partitioned tables 2018-04-26T02:17:12.775617Z 0 [Note] End of list of non-natively partitioned tables 2018-04-26T02:17:12.775617Z 0 [Note] MySQL: ready for connections. Version: '5.7.17-log' socket: '' port: 3306 MySQL Community Server (GPL) 2018-04-26T02:17:13.415218Z 0 [Note] InnoDB: Buffer pool(s) load completed at 180426 10:17:13

Golang与SQL Server的连接错误-“ TLS握手失败:无法读取握手数据包:EOF”

<div class="post-text" itemprop="text"> <p>I wrote a system that automates the process of deploying a VM on Microsoft Azure, installs Sql Server on it, and then executes a <code>.sql</code> script against the newly-installed server in order to initialize the environment. On Friday, this was all working as intended. Today, I'm getting this error.</p> <p>My code has the following relevant imports:</p> <pre class="lang-golang prettyprint-override"><code>import( "database/sql" _ "github.com/denisenkom/go-mssqldb" ) </code></pre> <p>and uses the following code to actually connect to the database once it's installed (error handling removed for brevity):</p> <pre class="lang-golang prettyprint-override"><code>// variables connectionString := "sqlserver://MasterUser:MasterPassword@xx.xx.xx.xxx:1433" dbName := "mssql" dbFile := "mssql.sql" // open database / get metadata sorted db, err := sql.Open(dbname, connectionString) defer db.Close() //Check to see if the connection is successful. err = db.Ping() // &lt;-------- // file input fileBytes, err := ioutil.ReadFile("../sql/" + dbsql) fileReader := bytes.NewReader(fileBytes) // parse line-by-line scanner := bufio.NewScanner(fileReader) lineNo := 0 for scanner.Scan() { toExec := scanner.Text() lineNo += 1 _, err = db.Exec(toExec) // &lt;-------- } </code></pre> <p>The error occurs on both <code>db.Ping()</code> and on every <code>db.Exec()</code>. In those cases, the message associated with <code>err</code> is</p> <pre><code>TLS Handshake failed: Cannot read handshake packet: EOF </code></pre> <hr> <p>As for the server itself, I install that over SSH with the following script:</p> <pre class="lang-sh prettyprint-override"><code># install mssql server sudo wget -qO- https://packages.microsoft.com/keys/microsoft.asc | sudo apt-key add - sudo add-apt-repository "$(wget -qO- https://packages.microsoft.com/config/ubuntu/16.04/mssql-server-2017.list)" curl https://packages.microsoft.com/config/ubuntu/16.04/prod.list | sudo tee /etc/apt/sources.list.d/msprod.list sudo apt-get -y update sudo apt-get -y install mssql-server # configure MSSQL sudo /opt/mssql/bin/mssql-conf setup # install local tools sudo ACCEPT_EULA=y apt-get -y install mssql-tools # do basic initialization in advance of .sql script /opt/mssql-tools/bin/sqlcmd -S localhost -U SA -P ${MasterPassword} -Q "CREATE LOGIN ${MasterUser} WITH PASSWORD = '${MasterPassword}';" /opt/mssql-tools/bin/sqlcmd -S localhost -U SA -P ${MasterPassword} -Q "CREATE USER ${MasterUser} FOR LOGIN ${MasterUser};" /opt/mssql-tools/bin/sqlcmd -S localhost -U SA -P ${MasterPassword} -Q "ALTER SERVER ROLE sysadmin ADD MEMBER ${MasterUser};" </code></pre> <p>This seems to work fine otherwise - I have no trouble connecting to the instance manually via SSH, and that script exits with no errors. I'm not sure how relevant it is.</p> <hr> <p>I tried SSHing into the server myself and opening a sql server console locally, which resulted in the following error messages:</p> <pre><code>$ /opt/mssql-tools/bin/sqlcmd -S localhost -U SA -P ********* Sqlcmd: Error: Microsoft ODBC Driver 17 for SQL Server : TCP Provider: Error code 0x2746. Sqlcmd: Error: Microsoft ODBC Driver 17 for SQL Server : Client unable to establish connection. </code></pre> <p>This is probably relevant, but I don't know how.</p> <hr> <p>What's causing this, and how do I fix it? Is the error in my code, on the VM I've created that's acting as the server, or in between? How would I best fix the problem?</p> </div>

Websockets服务器的SSL / TLS-Go lang

<div class="post-text" itemprop="text"> <p>I am using collider (<a href="https://github.com/webrtc/apprtc/tree/master/src/collider" rel="nofollow noreferrer">https://github.com/webrtc/apprtc/tree/master/src/collider</a> -a websockets server in go) and I am trying to add SSL/TLS support. For which I generated self-signed certificates:</p> <pre><code>openssl req -x509 -newkey rsa:4096 -keyout key.pem -out cert.pem -days 365 Enter PEM pass phrase: Verifying - Enter PEM pass phrase: Country Name (2 letter code) [AU]:US State or Province Name (full name) [Some-State]:CA Locality Name (eg, city) []: Organization Name (eg, company) [Internet Widgits Pty Ltd]:testwebsite.com Organizational Unit Name (eg, section) []:Engineering Common Name (e.g. server FQDN or YOUR name) []:www.testwebsite.com Email Address []:testwebsite@gmail.com </code></pre> <p>When I run the collider, I see this error:</p> <pre><code>2017/06/05 21:25:50 Error Run: crypto/tls: failed to parse private key </code></pre> <p>When I generate using (based on <a href="http://www.kaihag.com/https-and-go/" rel="nofollow noreferrer">http://www.kaihag.com/https-and-go/</a>):</p> <pre><code>openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout key.pem -out cert.pem </code></pre> <p>I get this error:</p> <pre><code>2017/06/05 22:11:31 http: TLS handshake error from &lt;some-ip&gt;:1082: remote error: unknown certificate </code></pre> <p>How to fix this? </p> <p><strong>Note:</strong> collider uses golang.org/x/net/websocket</p> </div>

Amazon SES错误:“在”https://email.us-west-2.amazonaws.com“上执行”SendEmail“时出错; AWS HTTP错误

<div class="post-text" itemprop="text"> <p>Could anyone please shed some light on what would be causing these errors?</p> <p>I'm using Google App Engine on a development server. First I got this error:</p> <blockquote> <p>The email was not sent. Error message: Error executing "SendEmail" on "<a href="https://email.us-west-2.amazonaws.com" rel="nofollow noreferrer">https://email.us-west-2.amazonaws.com</a>"; AWS HTTP error: No system CA bundle could be found in any of the the common system locations. PHP versions earlier than 5.6 are not properly configured to use the system's CA bundle by default. In order to verify peer certificates, you will need to supply the path on disk to a certificate bundle to the 'verify' request option: <a href="http://docs.guzzlephp.org/en/latest/clients.html#verify" rel="nofollow noreferrer">http://docs.guzzlephp.org/en/latest/clients.html#verify</a>. If you do not need a specific certificate bundle, then Mozilla provides a commonly used CA bundle which can be downloaded here (provided by the maintainer of cURL): <a href="https://raw.githubusercontent.com/bagder/ca-bundle/master/ca-bundle.crt" rel="nofollow noreferrer">https://raw.githubusercontent.com/bagder/ca-bundle/master/ca-bundle.crt</a>. Once you have a CA bundle available on disk, you can set the 'openssl.cafile' PHP ini setting to point to the path to the file, allowing you to omit the 'verify' request option. See <a href="http://curl.haxx.se/docs/sslcerts.html" rel="nofollow noreferrer">http://curl.haxx.se/docs/sslcerts.html</a> for more information.</p> </blockquote> <p>Then I added <code>google_app_engine.enable_curl_lite = 1</code> to php.ini and reduced the error to:</p> <blockquote> <p>The email was not sent. Error message: Error executing "SendEmail" on "<a href="https://email.us-west-2.amazonaws.com" rel="nofollow noreferrer">https://email.us-west-2.amazonaws.com</a>"; AWS HTTP error: curl_multi_init</p> </blockquote> <p>I'm beginning to understand that using SES on GAE might require a few tweaks??? What can I do?</p> <p>My code is 99% from the Amazon documentation. The only difference is that I've hardcoded the credentials array in <code>$client</code>.</p> <pre><code>&lt;?php // Replace path_to_sdk_inclusion with the path to the SDK as described in // http://docs.aws.amazon.com/aws-sdk-php/v3/guide/getting-started/basic-usage.html define('REQUIRED_FILE','../aws/aws-autoloader.php'); // Replace sender@example.com with your "From" address. // This address must be verified with Amazon SES. define('SENDER', 'me@verified.sender.address.com'); // Replace recipient@example.com with a "To" address. If your account // is still in the sandbox, this address must be verified. define('RECIPIENT', 'me@verified.receiver.address.com'); // Replace us-west-2 with the AWS region you're using for Amazon SES. define('REGION','us-west-2'); define('SUBJECT','Amazon SES test (AWS SDK for PHP)'); define('BODY','This email was sent with Amazon SES using the AWS SDK for PHP.'); require REQUIRED_FILE; use Aws\Ses\SesClient; $client = SesClient::factory(array( 'version'=&gt; 'latest', 'region' =&gt; REGION, 'credentials' =&gt; array( 'key' =&gt; 'xxx', 'secret' =&gt; 'xxx', ) )); $request = array(); $request['Source'] = SENDER; $request['Destination']['ToAddresses'] = array(RECIPIENT); $request['Message']['Subject']['Data'] = SUBJECT; $request['Message']['Body']['Text']['Data'] = BODY; try { $result = $client-&gt;sendEmail($request); $messageId = $result-&gt;get('MessageId'); echo("Email sent! Message ID: $messageId"." "); } catch (Exception $e) { echo("The email was not sent. Error message: "); echo($e-&gt;getMessage()." "); } ?&gt; </code></pre> <p><strong>EDIT:</strong></p> <p>Once deployed, this works without any edit to php.ini...??</p> </div>

跨服务器上传数据一直出现UnknownHostException: loaclhost

# 萌新学习,在跨服务器上传数据时,一直报着个错,求大神们指教 ``` com.sun.jersey.api.client.ClientHandlerException: java.net.UnknownHostException: loaclhost Caused by: java.net.UnknownHostException: loaclhost 2018-9-15 15:37:48 org.apache.catalina.core.StandardWrapperValve invoke **严重: Servlet.service() for servlet [springMVC] in context with path [/ssm] threw exception [Request processing failed; nested exception is com.sun.jersey.api.client.ClientHandlerException: java.net.UnknownHostException: loaclhost] with root cause java.net.UnknownHostException: loaclhost** at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:177) at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366) at java.net.Socket.connect(Socket.java:519) at java.net.Socket.connect(Socket.java:469) at sun.net.NetworkClient.doConnect(NetworkClient.java:163) at sun.net.www.http.HttpClient.openServer(HttpClient.java:394) at sun.net.www.http.HttpClient.openServer(HttpClient.java:529) at sun.net.www.http.HttpClient.<init>(HttpClient.java:233) at sun.net.www.http.HttpClient.New(HttpClient.java:306) at sun.net.www.http.HttpClient.New(HttpClient.java:323) at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:852) at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:793) at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:718) at sun.net.www.protocol.http.HttpURLConnection.getOutputStream(HttpURLConnection.java:896) at com.sun.jersey.client.urlconnection.URLConnectionClientHandler$1$1.getOutputStream(URLConnectionClientHandler.java:238) at com.sun.jersey.api.client.CommittingOutputStream.commitStream(CommittingOutputStream.java:117) at com.sun.jersey.api.client.CommittingOutputStream.write(CommittingOutputStream.java:83) at com.sun.jersey.core.impl.provider.entity.ByteArrayProvider.writeTo(ByteArrayProvider.java:95) at com.sun.jersey.core.impl.provider.entity.ByteArrayProvider.writeTo(ByteArrayProvider.java:59) at com.sun.jersey.api.client.RequestWriter.writeRequestEntity(RequestWriter.java:300) at com.sun.jersey.client.urlconnection.URLConnectionClientHandler._invoke(URLConnectionClientHandler.java:217) at com.sun.jersey.client.urlconnection.URLConnectionClientHandler.handle(URLConnectionClientHandler.java:153) at com.sun.jersey.api.client.Client.handle(Client.java:652) at com.sun.jersey.api.client.WebResource.handle(WebResource.java:682) at com.sun.jersey.api.client.WebResource.put(WebResource.java:223) at com.yihengjie.controller.UploadController.uploadPic(UploadController.java:47) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.springframework.web.method.support.InvocableHandlerMethod.invoke(InvocableHandlerMethod.java:219) at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:132) at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:104) at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandleMethod(RequestMappingHandlerAdapter.java:746) at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:687) at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:80) at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:925) at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:856) at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:915) at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:822) at javax.servlet.http.HttpServlet.service(HttpServlet.java:647) at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:796) at javax.servlet.http.HttpServlet.service(HttpServlet.java:728) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:88) at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:953) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408) at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1023) at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589) at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:312) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:619) ``` ## 存数据的服务器配置: ``` <Server port="8003" shutdown="SHUTDOWN"> <Connector port="8004" protocol="HTTP/1.1" connectionTimeout="20000" redirectPort="8443" /> <Connector port="8006" protocol="AJP/1.3" redirectPort="8443" /> ``` ## 执行存储的代码: ``` public class SSMUtils { public static final String pic_HOST="http://loaclhost:8004/ssm_image"; } ``` ``` @Controller @RequestMapping("/upload") public class UploadController { @RequestMapping("/uploadPic") public void uploadPic(HttpServletRequest request, String fileName,PrintWriter out) { // 把request转换成多部件请求 MultipartHttpServletRequest mh = (MultipartHttpServletRequest) request; CommonsMultipartFile cm = (CommonsMultipartFile) mh.getFile(fileName); byte[] fbytes = cm.getBytes(); //准备图片名称算法 String newFileName=""; SimpleDateFormat adf = new SimpleDateFormat("yyyyMMddHHmmssSSS"); newFileName = adf.format(new Date()); Random rd = new Random(); for(int i=0;i<3;i++){ newFileName = newFileName+rd.nextInt(10); } //获取文件名 String sur = cm.getOriginalFilename(); //截取文件的扩展名 String suffix = sur.substring(sur.lastIndexOf(".")); //创建jersy服务器 Client client = Client.create(); WebResource resource = client.resource(SSMUtils.pic_HOST+"/upload/"+newFileName+suffix); resource.put(String.class, fbytes); //准备回显图片路径地址 String fullPath=SSMUtils.pic_HOST+"/upload/"+newFileName+suffix; String relativePath="/upload/"+newFileName+suffix; String result = "{\"fullPath\":\""+fullPath+"\",\"relativePath\":\""+relativePath+"\"}"; out.print(result); } ```

hbase mapreduce 报错 java.lang.NullPointerException

http://bbs.csdn.net/topics/390865764 这篇文章出错相似,求教大牛们 2017-09-15 23:19:15 [WARN]-[] Your hostname, admin-PC resolves to a loopback/non-reachable address: fe80:0:0:0:0:5efe:c0a8:164%23, but we couldn't find any external IP address! 2017-09-15 23:19:15 [INFO]-[org.apache.hadoop.conf.Configuration.deprecation] session.id is deprecated. Instead, use dfs.metrics.session-id 2017-09-15 23:19:15 [INFO]-[org.apache.hadoop.metrics.jvm.JvmMetrics] Initializing JVM Metrics with processName=JobTracker, sessionId= Exception in thread "main" java.lang.NullPointerException at java.lang.ProcessBuilder.start(ProcessBuilder.java:1010) at org.apache.hadoop.util.Shell.runCommand(Shell.java:487) at org.apache.hadoop.util.Shell.run(Shell.java:460) at org.apache.hadoop.util.Shell$ShellCommandExecutor.execute(Shell.java:720) at org.apache.hadoop.util.Shell.execCommand(Shell.java:813) at org.apache.hadoop.util.Shell.execCommand(Shell.java:796) at org.apache.hadoop.fs.RawLocalFileSystem.setPermission(RawLocalFileSystem.java:656) at org.apache.hadoop.fs.RawLocalFileSystem.mkdirs(RawLocalFileSystem.java:444) at org.apache.hadoop.fs.FilterFileSystem.mkdirs(FilterFileSystem.java:308) at org.apache.hadoop.mapreduce.JobSubmissionFiles.getStagingDir(JobSubmissionFiles.java:133) at org.apache.hadoop.mapreduce.JobSubmitter.submitJobInternal(JobSubmitter.java:147) at org.apache.hadoop.mapreduce.Job$10.run(Job.java:1307) at org.apache.hadoop.mapreduce.Job$10.run(Job.java:1304) at java.security.AccessController.doPrivileged(Native Method) at javax.security.auth.Subject.doAs(Subject.java:415) at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1671) at org.apache.hadoop.mapreduce.Job.submit(Job.java:1304) at org.apache.hadoop.mapreduce.Job.waitForCompletion(Job.java:1325) at TestOnlyMapper.main(TestOnlyMapper.java:35) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at com.intellij.rt.execution.application.AppMain.main(AppMain.java:144) ----------------------分割线 代码------------------------------------------------- import org.apache.hadoop.conf.Configuration; import org.apache.hadoop.hbase.Cell; import org.apache.hadoop.hbase.HBaseConfiguration; import org.apache.hadoop.hbase.client.Result; import org.apache.hadoop.hbase.client.Scan; import org.apache.hadoop.hbase.io.ImmutableBytesWritable; import org.apache.hadoop.hbase.mapreduce.TableMapReduceUtil; import org.apache.hadoop.hbase.mapreduce.TableMapper; import org.apache.hadoop.io.LongWritable; import org.apache.hadoop.io.Text; import org.apache.hadoop.mapreduce.Job; import org.apache.hadoop.mapreduce.lib.output.NullOutputFormat; import java.io.IOException; /** * Created by admin on 2017/9/15. */ public class TestOnlyMapper { public static void main(String[] args) throws IOException, ClassNotFoundException, InterruptedException { Configuration conf = HBaseConfiguration.create(); conf.set("hbase.rootdir","hdfs://hadoop.master:8020/hdfs/hbase"); conf.set("hbase.zookeeper.quorum","hadoop.master,hadoop.slave11,hadoop.slave12"); conf.set("hbase.zookeeper.property.clientPort","2181"); Job job= new Job(conf,"test"); job.setJarByClass(TestOnlyMapper.class); Scan scan = new Scan(); job.setMapSpeculativeExecution(false); job.setReduceSpeculativeExecution(false); TableMapReduceUtil.initTableMapperJob("test11",scan,OMapper.class,null,null,job); job.setOutputFormatClass(NullOutputFormat.class); job.waitForCompletion(true); } } class OMapper extends TableMapper<Text, LongWritable> { @Override protected void map(ImmutableBytesWritable key, Result value, Context context) throws IOException, InterruptedException { for(Cell cell:value.listCells()) { System.out.println("---------------------"); System.out.println("cell.getQualifier()= "+cell.getQualifier().toString()); System.out.println("---------------------"); } } }

由于网络问题,经常重新启动Pod

<div class="post-text" itemprop="text"> <p><strong>Description:</strong></p> <p>We have a services what running on the Google Container Engine, based on the golang library <a href="https://github.com/micro/go-micro" rel="nofollow noreferrer">go-micro</a> and these services running fine, except random restarting during the day. </p> <p><strong>Problem:</strong></p> <p>Pods is restarting pretty often during the day. This affects to our services and core services like kube-dns or nginx-ingress. After checking of the logs, it looks like a networking problem, after this docker daemon and kubelet is restarting, and takes to restart our services. It might happen 10 times per day or 2 times per day. This is not constantly. </p> <p><strong>Details:</strong></p> <p>Version:</p> <pre><code>kubectl version Client Version: version.Info{Major:"1", Minor:"5", GitVersion:"v1.5.2", GitCommit:"08e099554f3c31f6e6f07b448ab3ed78d0520507", GitTreeState:"clean", BuildDate:"2017-01-12T04:57:25Z", GoVersion:"go1.7.4", Compiler:"gc", Platform:"linux/amd64"} Server Version: version.Info{Major:"1", Minor:"5", GitVersion:"v1.5.3", GitCommit:"029c3a408176b55c30846f0faedf56aae5992e9b", GitTreeState:"clean", BuildDate:"2017-02-15T06:34:56Z", GoVersion:"go1.7.4", Compiler:"gc", Platform:"linux/amd64"} </code></pre> <p>OS:</p> <pre><code>uname -a Linux microservices-g1-small-25eedb64-w265 4.4.21+ #1 SMP Thu Nov 10 02:50:15 PST 2016 x86_64 Intel(R) Xeon(R) CPU @ 2.30GHz GenuineIntel GNU/Linux cat /etc/lsb-release CHROMEOS_AUSERVER=https://tools.google.com/service/update2 CHROMEOS_RELEASE_BOARD=lakitu-signed-mpkeys CHROMEOS_RELEASE_BRANCH_NUMBER=0 CHROMEOS_RELEASE_BUILDER_PATH=lakitu-release/R56-8977.0.0 CHROMEOS_RELEASE_BUILD_NUMBER=8977 CHROMEOS_RELEASE_BUILD_TYPE=Official Build CHROMEOS_RELEASE_CHROME_MILESTONE=56 CHROMEOS_RELEASE_DESCRIPTION=8977.0.0 (Official Build) dev-channel lakitu CHROMEOS_RELEASE_NAME=Chrome OS CHROMEOS_RELEASE_PATCH_NUMBER=0 CHROMEOS_RELEASE_TRACK=dev-channel CHROMEOS_RELEASE_VERSION=8977.0.0 DEVICETYPE=OTHER GOOGLE_RELEASE=8977.0.0 HWID_OVERRIDE=LAKITU DOGFOOD </code></pre> <p>Golang microservice framework <a href="https://github.com/micro/go-micro" rel="nofollow noreferrer">go-micro</a></p> <p>I tried to check the logs for figure out what happening and what i found:</p> <pre> rvices-g1-small-25eedb64-s0p6 update_engine[899]: [0310/064853:INFO:update_manager-inl.h(52)] ChromeOSPolicy::UpdateCheckAllowed: START Mar 10 06:53:28 gke-microservices-g1-small-25eedb64-s0p6 update_engine[899]: [0310/064908:WARNING:evaluation_context-inl.h(43)] Error reading Variable update_disabled: "No value set for update_disabled" Mar 10 06:53:28 gke-microservices-g1-small-25eedb64-s0p6 update_engine[899]: [0310/064932:WARNING:evaluation_context-inl.h(43)] Error reading Variable release_channel_delegated: "No value set for release_channel_delegated" Mar 10 06:53:28 gke-microservices-g1-small-25eedb64-s0p6 update_engine[899]: [0310/065015:INFO:chromeos_policy.cc(314)] Periodic check interval not satisfied, blocking until 3/10/2017 6:58:27 GMT Mar 10 06:53:28 gke-microservices-g1-small-25eedb64-s0p6 update_engine[899]: [0310/065025:INFO:update_manager-inl.h(74)] ChromeOSPolicy::UpdateCheckAllowed: END Mar 10 06:53:28 gke-microservices-g1-small-25eedb64-s0p6 health-monitor.sh[1435]: Docker daemon failed! Mar 10 06:53:28 gke-microservices-g1-small-25eedb64-s0p6 health-monitor.sh[1435]: Docker daemon failed! Mar 10 06:53:28 gke-microservices-g1-small-25eedb64-s0p6 health-monitor.sh[1435]: Docker daemon failed! Mar 10 06:53:28 gke-microservices-g1-small-25eedb64-s0p6 health-monitor.sh[1435]: Docker daemon failed! Mar 10 06:53:28 gke-microservices-g1-small-25eedb64-s0p6 metrics_daemon[903]: [INFO:upload_service.cc(103)] Metrics disabled. Don't upload metrics samples. Mar 10 06:53:29 gke-microservices-g1-small-25eedb64-s0p6 health-monitor.sh[1432]: okKubelet is unhealthy! Mar 10 06:53:29 gke-microservices-g1-small-25eedb64-s0p6 docker[24076]: time="2017-03-10T06:53:05.302107123Z" level=error msg="Force shutdown daemon" Mar 10 06:53:29 gke-microservices-g1-small-25eedb64-s0p6 kubelet[30078]: I0310 06:53:17.997217 30078 helpers.go:101] Unable to get network stats from pid 27012: couldn't read network stats: failure opening /proc/27012/net/d Mar 10 06:53:29 gke-microservices-g1-small-25eedb64-s0p6 kubelet[30078]: I0310 06:53:18.134978 30078 helpers.go:101] Unable to get network stats from pid 26236: couldn't read network stats: failure opening /proc/26236/net/d Mar 10 06:53:29 gke-microservices-g1-small-25eedb64-s0p6 kubelet[30078]: I0310 06:53:18.135389 30078 helpers.go:101] Unable to get network stats from pid 27581: couldn't read network stats: failure opening /proc/27581/net/d Mar 10 06:53:29 gke-microservices-g1-small-25eedb64-s0p6 kubelet[30078]: I0310 06:53:18.135801 30078 helpers.go:101] Unable to get network stats from pid 27581: couldn't read network stats: failure opening /proc/27581/net/d Mar 10 06:53:29 gke-microservices-g1-small-25eedb64-s0p6 kubelet[30078]: W0310 06:53:18.430715 30078 prober.go:98] No ref for container "docker://4a90f704319f64738915bc353515403263a60ad04d5859174b50bb47c255db12" (social-syn Mar 10 06:53:29 gke-microservices-g1-small-25eedb64-s0p6 kubelet[30078]: I0310 06:53:18.430740 30078 prober.go:106] Liveness probe for "social-sync-deployment-2745944389-rftmf_on-deploy-dev(80a79ba8-04b6-11e7-be05-42010 Mar 10 06:53:29 gke-microservices-g1-small-25eedb64-s0p6 kubelet[30078]: W0310 06:53:18.431064 30078 prober.go:98] No ref for container "docker://964f8ef2da5de63196f5ddfaec156f6b93fb05671be3dd7f2d90e4efb91cbd34" (heapster-v Mar 10 06:53:29 gke-microservices-g1-small-25eedb64-s0p6 kubelet[30078]: I0310 06:53:18.431076 30078 prober.go:106] Liveness probe for "heapster-v1.2.0.1-1382115970-l9h4q_kube-system(7f0f2677-04b6-11e7-be05-42010af00129):he Mar 10 06:53:29 gke-microservices-g1-small-25eedb64-s0p6 health-monitor.sh[1432]: % Total % Received % Xferd Average Speed Time Time Time Current Mar 10 06:53:29 gke-microservices-g1-small-25eedb64-s0p6 health-monitor.sh[1432]: Dload Upload Total Spent Left Speed Mar 10 06:53:29 gke-microservices-g1-small-25eedb64-s0p6 docker[24076]: time="2017-03-10T06:53:12Z" level=info msg="stopping containerd after receiving terminated" Mar 10 06:53:29 gke-microservices-g1-small-25eedb64-s0p6 kubelet[30078]: W0310 06:53:18.525414 30078 prober.go:98] No ref for container "docker://6fa84a9c20b7c8600048a98d06974817e85652b3b66b8c64d6390735de5bbf19" (kube-dns-4 Mar 10 06:53:29 gke-microservices-g1-small-25eedb64-s0p6 kubelet[30078]: I0310 06:53:18.525458 30078 prober.go:106] Readiness probe for "kube-dns-4101612645-bkt6z_kube-system(7f12f616-04b6-11e7-be05-42010af00129):kubedns" f Mar 10 06:53:29 gke-microservices-g1-small-25eedb64-s0p6 kubelet[30078]: E0310 06:53:18.631190 30078 generic.go:197] GenericPLEG: Unable to retrieve pods: operation timeout: context deadline exceeded Mar 10 06:53:29 gke-microservices-g1-small-25eedb64-s0p6 kubelet[30078]: E0310 06:53:18.646004 30078 container_manager_linux.go:625] error opening pid file /var/run/docker.pid: open /var/run/docker.pid: no such file or dire Mar 10 06:53:29 gke-microservices-g1-small-25eedb64-s0p6 kubelet[30078]: E0310 06:53:18.893042 30078 kubelet_pods.go:710] Error listing containers: dockertools.operationTimeout{err:context.deadlineExceededError{}} Mar 10 06:53:29 gke-microservices-g1-small-25eedb64-s0p6 kubelet[30078]: E0310 06:53:18.893091 30078 kubelet.go:1860] Failed cleaning pods: operation timeout: context deadline exceeded Mar 10 06:53:29 gke-microservices-g1-small-25eedb64-s0p6 kubelet[30078]: I0310 06:53:18.947556 30078 logs.go:41] http: TLS handshake error from 127.0.0.1:39224: EOF Mar 10 06:53:29 gke-microservices-g1-small-25eedb64-s0p6 kubelet[30078]: W0310 06:53:18.990182 30078 prober.go:98] No ref for container "docker://964f8ef2da5de63196f5ddfaec156f6b93fb05671be3dd7f2d90e4efb91cbd34" (heapster-v Mar 10 06:53:29 gke-microservices-g1-small-25eedb64-s0p6 kubelet[30078]: I0310 06:53:18.990207 30078 prober.go:106] Liveness probe for "heapster-v1.2.0.1-1382115970-l9h4q_kube-system(7f0f2677-04b6-11e7-be05-42010af00129):he Mar 10 06:53:29 gke-microservices-g1-small-25eedb64-s0p6 kubelet[30078]: W0310 06:53:18.990268 30078 prober.go:98] No ref for container "docker://4a90f704319f64738915bc353515403263a60ad04d5859174b50bb47c255db12" (social-syn Mar 10 06:53:29 gke-microservices-g1-small-25eedb64-s0p6 health-monitor.sh[1432]: [1.9K blob data] Mar 10 06:53:29 gke-microservices-g1-small-25eedb64-s0p6 docker[24076]: time="2017-03-10T06:53:13.043529322Z" level=error msg="Stop container error: Stop container d0c295d50409a171745524d6171a845fc3d29fd6db26da3fc883653fce1e4 Mar 10 06:53:29 gke-microservices-g1-small-25eedb64-s0p6 docker[24076]: time="2017-03-10T06:53:13.077975854Z" level=error msg="Stop container error: Stop container 4712afe5f084cf3163bef94ac21e3d63a5179190e73a8a0fa906a59630b80 Mar 10 06:53:29 gke-microservices-g1-small-25eedb64-s0p6 docker[24076]: time="2017-03-10T06:53:13.078034531Z" level=error msg="Stop container error: Stop container 1b18343beedfbe58403017fa532b85604c7ec2c96f15bd503747c19ac37f6 Mar 10 06:53:29 gke-microservices-g1-small-25eedb64-s0p6 docker[24076]: time="2017-03-10T06:53:13.078074791Z" level=error msg="Stop container error: Stop container 1fb54295ff5ecc734bf12c576880131cb98011cb98e37b5fa982bdd257b69 Mar 10 06:53:29 gke-microservices-g1-small-25eedb64-s0p6 docker[24076]: time="2017-03-10T06:53:13.078113450Z" level=error msg="Stop container error: Stop container b8e52eafa29a8b02263894b3d0d1371a92f1656fea981a6b9842c42b5d939 Mar 10 06:53:29 gke-microservices-g1-small-25eedb64-s0p6 docker[24076]: time="2017-03-10T06:53:13.078150890Z" level=error msg="Stop container error: Stop container 9b9021078f15bc3ea03770c0c135e978326f8e279e60e9663885218070026 Mar 10 06:53:29 gke-microservices-g1-small-25eedb64-s0p6 kubelet[30078]: I0310 06:53:18.990280 30078 prober.go:106] Liveness probe for "social-sync-deployment-2745944389-rftmf_on-deploy-dev(80a79ba8-04b6-11e7-be05-42010 Mar 10 06:53:29 gke-microservices-g1-small-25eedb64-s0p6 kubelet[30078]: E0310 06:53:19.219709 30078 eviction_manager.go:204] eviction manager: unexpected err: failed ImageStats: failed to list docker images - operation tim Mar 10 06:53:29 gke-microservices-g1-small-25eedb64-s0p6 kubelet[30078]: I0310 06:53:19.285843 30078 logs.go:41] http: TLS handshake error from 127.0.0.1:39414: write tcp 127.0.0.1:10250-&gt;127.0.0.1:39414: write: broken pipe Mar 10 06:53:29 gke-microservices-g1-small-25eedb64-s0p6 kubelet[30078]: I0310 06:53:19.400005 30078 kubelet.go:1725] skipping pod synchronization - [container runtime is down] Mar 10 06:53:29 gke-microservices-g1-small-25eedb64-s0p6 kubelet[30078]: W0310 06:53:19.400065 30078 prober.go:98] No ref for container "docker://6d63f67520d9b76446a00e1f6d81422f12f2fa93a1a9f85a656c0b49e457ba0c" (social-acc Mar 10 06:53:29 gke-microservices-g1-small-25eedb64-s0p6 kubelet[30078]: I0310 06:53:19.400079 30078 prober.go:106] Liveness probe for "social-accounts-deployment-983093656-h9frj_on-deploy-dev(8071bfd6-04b6-11e7-be05-42 Mar 10 06:53:29 gke-microservices-g1-small-25eedb64-s0p6 kubelet[30078]: W0310 06:53:19.400318 30078 prober.go:98] No ref for container "docker://963021c2befd5e53a61c16ba2f7c97446b4c045bbf92f723e3b899c4fb2cde21" (post-metri Mar 10 06:53:29 gke-microservices-g1-small-25eedb64-s0p6 kubelet[30078]: I0310 06:53:19.400333 30078 prober.go:106] Liveness probe for "post-metrics-deployment-556584274-z3p67_on-deploy-dev(7f9d4125-04b6-11e7-be05-42010 Mar 10 06:53:29 gke-microservices-g1-small-25eedb64-s0p6 kubelet[30078]: W0310 06:53:19.400476 30078 prober.go:98] No ref for container "docker://dc65f853b22eb25bdfaf1ce5bf1d0d6f48e57379caffa526f80a71b086d5247f" (notificati Mar 10 06:53:29 gke-microservices-g1-small-25eedb64-s0p6 health-monitor.sh[1432]: [1.9K blob data] Mar 10 06:53:29 gke-microservices-g1-small-25eedb64-s0p6 docker[24076]: time="2017-03-10T06:53:13.078188154Z" level=error msg="Stop container error: Stop container 8ee3de7c4dd56136b8c8a444f9b58316d190d2dad496472e233f23bf27596 Mar 10 06:53:29 gke-microservices-g1-small-25eedb64-s0p6 docker[24076]: time="2017-03-10T06:53:13.078226785Z" level=error msg="Stop container error: Stop container a9fefcd23efb7f6472b209d6e383b8050da054c3f4b1ad2c6bf531f3b1475 Mar 10 06:53:29 gke-microservices-g1-small-25eedb64-s0p6 docker[24076]: time="2017-03-10T06:53:13.078276076Z" level=error msg="Stop container error: Stop container 874fdb93aafc0a13bcbeada66f8f031cd52c01f0cec59913a49bf93917ce5 Mar 10 06:53:29 gke-microservices-g1-small-25eedb64-s0p6 docker[24076]: time="2017-03-10T06:53:13.565783448Z" level=error msg="Stop container error: Stop container 42b9b796470a3a0a345229227cb7fa223967c56ce3b8e2765c3d9a48e963c Mar 10 06:53:29 gke-microservices-g1-small-25eedb64-s0p6 docker[24076]: time="2017-03-10T06:53:13.565846865Z" level=error msg="Stop container error: Stop container add6806333a7185aa4944b9bde0c9b2be973a09e59d2b80c09e98e549b180 Mar 10 06:53:29 gke-microservices-g1-small-25eedb64-s0p6 docker[24076]: time="2017-03-10T06:53:13.565886676Z" level=error msg="Stop container error: Stop container 5631ba532f8b2a4ac262b97fabd2df07a8fe6b0202879e1347a763a5a8921 Mar 10 06:53:29 gke-microservices-g1-small-25eedb64-s0p6 kubelet[30078]: I0310 06:53:19.400485 30078 prober.go:106] Liveness probe for "notifications-deployment-3662335406-r668m_on-deploy-dev(880c38dc-0425-11e7-be05-420 </pre> <p>At every time, when it trying to update a ChromeOS, it starts to occurs docker daemon issues, networking issues etc.</p> <p>kube-proxy.log</p> <pre> I0310 06:53:17.392671 5 proxier.go:750] Deleting connection tracking state for service IP 10.3.240.10, endpoint IP 10.0.5.223 Flag --resource-container has been deprecated, This feature will be removed in a later releas e. I0310 06:54:12.615435 5 iptables.go:176] Could not connect to D-Bus system bus: dial un ix /var/run/dbus/system_bus_socket: connect: no such file or directory I0310 06:54:12.615488 5 server.go:168] setting OOM scores is unsupported in this build I0310 06:54:12.687932 5 server.go:215] Using iptables Proxier. I0310 06:54:12.690596 5 server.go:227] Tearing down userspace rules. I0310 06:54:12.690844 5 healthcheck.go:119] Initializing kube-proxy health checker I0310 06:54:12.702034 5 conntrack.go:81] Set sysctl 'net/netfilter/nf_conntrack_max' to 131072 I0310 06:54:12.702366 5 conntrack.go:66] Setting conntrack hashsize to 32768 I0310 06:54:12.702927 5 conntrack.go:81] Set sysctl 'net/netfilter/nf_conntrack_tcp_tim eout_established' to 86400 I0310 06:54:12.702951 5 conntrack.go:81] Set sysctl 'net/netfilter/nf_conntrack_tcp_tim eout_close_wait' to 3600 I0310 06:54:12.714134 5 proxier.go:802] Not syncing iptables until Services and Endpoin ts have been received from master </pre> <p>More logs:</p> <pre> g1-small-25eedb64-w265 kubelet[3344]: I0310 06:50:45.445978 3344 docker_manager.go:1975] Need to restart pod infra container for "roles-deployment-1745993421-qxf7z_on-a Mar 10 06:50:45 gke-microservices-g1-small-25eedb64-w265 kubelet[3344]: I0310 06:50:45.574227 3344 operation_executor.go:917] MountVolume.SetUp succeeded for volume "kubernetes.io/secret/e257aff1-055d-1 Mar 10 06:50:45 gke-microservices-g1-small-25eedb64-w265 kubelet[3344]: I0310 06:50:45.575943 3344 docker_manager.go:1975] Need to restart pod infra container for "social-accounts-deployment-983093656-v Mar 10 06:50:45 gke-microservices-g1-small-25eedb64-w265 kubelet[3344]: I0310 06:50:45.774316 3344 operation_executor.go:917] MountVolume.SetUp succeeded for volume "kubernetes.io/secret/e2762a4c-055d-1 Mar 10 06:50:46 gke-microservices-g1-small-25eedb64-w265 kubelet[3344]: I0310 06:50:46.056277 3344 docker_manager.go:1975] Need to restart pod infra container for "tags-srv-deployment-626769860-js4h5_on Mar 10 06:50:46 gke-microservices-g1-small-25eedb64-w265 kernel: IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready Mar 10 06:50:46 gke-microservices-g1-small-25eedb64-w265 systemd-udevd[6680]: Could not generate persistent MAC address for veth37abc82a: No such file or directory Mar 10 06:50:46 gke-microservices-g1-small-25eedb64-w265 systemd-timesyncd[570]: Network configuration changed, trying to establish connection. Mar 10 06:50:46 gke-microservices-g1-small-25eedb64-w265 kernel: IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready Mar 10 06:50:46 gke-microservices-g1-small-25eedb64-w265 kernel: device veth37abc82a entered promiscuous mode Mar 10 06:50:46 gke-microservices-g1-small-25eedb64-w265 kernel: cbr0: port 3(veth37abc82a) entered forwarding state Mar 10 06:50:46 gke-microservices-g1-small-25eedb64-w265 kernel: cbr0: port 3(veth37abc82a) entered forwarding state Mar 10 06:50:46 gke-microservices-g1-small-25eedb64-w265 systemd-timesyncd[570]: Synchronized to time server 169.254.169.254:123 (169.254.169.254). Mar 10 06:50:46 gke-microservices-g1-small-25eedb64-w265 systemd-networkd[611]: veth37abc82a: Gained carrier Mar 10 06:50:46 gke-microservices-g1-small-25eedb64-w265 systemd-timesyncd[570]: Network configuration changed, trying to establish connection. Mar 10 06:50:46 gke-microservices-g1-small-25eedb64-w265 systemd-timesyncd[570]: Synchronized to time server 169.254.169.254:123 (169.254.169.254). Mar 10 06:50:46 gke-microservices-g1-small-25eedb64-w265 kubelet[3344]: I0310 06:50:46.626937 3344 conversion.go:134] failed to handle multiple devices for container. Skipping Filesystem stats Mar 10 06:50:46 gke-microservices-g1-small-25eedb64-w265 kubelet[3344]: I0310 06:50:46.627371 3344 conversion.go:134] failed to handle multiple devices for container. Skipping Filesystem stats Mar 10 06:50:46 gke-microservices-g1-small-25eedb64-w265 kernel: IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready Mar 10 06:50:46 gke-microservices-g1-small-25eedb64-w265 systemd-timesyncd[570]: Network configuration changed, trying to establish connection. Mar 10 06:50:46 gke-microservices-g1-small-25eedb64-w265 systemd-udevd[6745]: Could not generate persistent MAC address for veth07d02159: No such file or directory Mar 10 06:50:46 gke-microservices-g1-small-25eedb64-w265 systemd-timesyncd[570]: Synchronized to time server 169.254.169.254:123 (169.254.169.254). Mar 10 06:50:46 gke-microservices-g1-small-25eedb64-w265 systemd-timesyncd[570]: Network configuration changed, trying to establish connection. Mar 10 06:50:46 gke-microservices-g1-small-25eedb64-w265 systemd-timesyncd[570]: Synchronized to time server 169.254.169.254:123 (169.254.169.254). Mar 10 06:50:46 gke-microservices-g1-small-25eedb64-w265 kernel: IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready Mar 10 06:50:46 gke-microservices-g1-small-25eedb64-w265 systemd-networkd[611]: veth07d02159: Gained carrier Mar 10 06:50:46 gke-microservices-g1-small-25eedb64-w265 systemd-timesyncd[570]: Network configuration changed, trying to establish connection. Mar 10 06:50:46 gke-microservices-g1-small-25eedb64-w265 systemd-timesyncd[570]: Synchronized to time server 169.254.169.254:123 (169.254.169.254). Mar 10 06:50:46 gke-microservices-g1-small-25eedb64-w265 kernel: device veth07d02159 entered promiscuous mode Mar 10 06:50:46 gke-microservices-g1-small-25eedb64-w265 kernel: cbr0: port 12(veth07d02159) entered forwarding state Mar 10 06:50:46 gke-microservices-g1-small-25eedb64-w265 kernel: cbr0: port 12(veth07d02159) entered forwarding state Mar 10 06:50:46 gke-microservices-g1-small-25eedb64-w265 kernel: IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready Mar 10 06:50:46 gke-microservices-g1-small-25eedb64-w265 systemd-udevd[6771]: Could not generate persistent MAC address for veth2b02253d: No such file or directory Mar 10 06:50:46 gke-microservices-g1-small-25eedb64-w265 systemd-timesyncd[570]: Network configuration changed, trying to establish connection. Mar 10 06:50:46 gke-microservices-g1-small-25eedb64-w265 systemd-timesyncd[570]: Synchronized to time server 169.254.169.254:123 (169.254.169.254). Mar 10 06:50:46 gke-microservices-g1-small-25eedb64-w265 systemd-timesyncd[570]: Network configuration changed, trying to establish connection. Mar 10 06:50:46 gke-microservices-g1-small-25eedb64-w265 systemd-timesyncd[570]: Synchronized to time server 169.254.169.254:123 (169.254.169.254). Mar 10 06:50:46 gke-microservices-g1-small-25eedb64-w265 kernel: IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready Mar 10 06:50:46 gke-microservices-g1-small-25eedb64-w265 systemd-networkd[611]: veth2b02253d: Gained carrier Mar 10 06:50:46 gke-microservices-g1-small-25eedb64-w265 systemd-timesyncd[570]: Network configuration changed, trying to establish connection. Mar 10 06:50:46 gke-microservices-g1-small-25eedb64-w265 systemd-timesyncd[570]: Synchronized to time server 169.254.169.254:123 (169.254.169.254). Mar 10 06:50:46 gke-microservices-g1-small-25eedb64-w265 kernel: device veth2b02253d entered promiscuous mode Mar 10 06:50:46 gke-microservices-g1-small-25eedb64-w265 kernel: cbr0: port 23(veth2b02253d) entered forwarding state Mar 10 06:50:46 gke-microservices-g1-small-25eedb64-w265 kernel: cbr0: port 23(veth2b02253d) entered forwarding state Mar 10 06:50:46 gke-microservices-g1-small-25eedb64-w265 kernel: IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready Mar 10 06:50:46 gke-microservices-g1-small-25eedb64-w265 systemd-timesyncd[570]: Network configuration changed, trying to establish connection. Mar 10 06:50:46 gke-microservices-g1-small-25eedb64-w265 systemd-udevd[6796]: Could not generate persistent MAC address for veth55143c6b: No such file or directory Mar 10 06:50:46 gke-microservices-g1-small-25eedb64-w265 systemd-timesyncd[570]: Synchronized to time server 169.254.169.254:123 (169.254.169.254). Mar 10 06:50:46 gke-microservices-g1-small-25eedb64-w265 systemd-timesyncd[570]: Network configuration changed, trying to establish connection. Mar 10 06:50:46 gke-microservices-g1-small-25eedb64-w265 systemd-timesyncd[570]: Synchronized to time server 169.254.169.254:123 (169.254.169.254). Mar 10 06:50:46 gke-microservices-g1-small-25eedb64-w265 kernel: IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready Mar 10 06:50:46 gke-microservices-g1-small-25eedb64-w265 systemd-timesyncd[570]: Network configuration changed, trying to establish connection. Mar 10 06:50:46 gke-microservices-g1-small-25eedb64-w265 systemd-networkd[611]: veth55143c6b: Gained carrier Mar 10 06:50:46 gke-microservices-g1-small-25eedb64-w265 systemd-timesyncd[570]: Synchronized to time server 169.254.169.254:123 (169.254.169.254). Mar 10 06:50:46 gke-microservices-g1-small-25eedb64-w265 kernel: device veth55143c6b entered promiscuous mode Mar 10 06:50:46 gke-microservices-g1-small-25eedb64-w265 kernel: cbr0: port 30(veth55143c6b) entered forwarding state Mar 10 06:50:46 gke-microservices-g1-small-25eedb64-w265 kernel: cbr0: port 30(veth55143c6b) entered forwarding state Mar 10 06:50:46 gke-microservices-g1-small-25eedb64-w265 kernel: IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready Mar 10 06:50:46 gke-microservices-g1-small-25eedb64-w265 systemd-timesyncd[570]: Network configuration changed, trying to establish connection. Mar 10 06:50:46 gke-microservices-g1-small-25eedb64-w265 systemd-udevd[6821]: Could not generate persistent MAC address for vethe38b8eee: No such file or directory Mar 10 06:50:46 gke-microservices-g1-small-25eedb64-w265 systemd-timesyncd[570]: Synchronized to time server 169.254.169.254:123 (169.254.169.254). Mar 10 06:50:46 gke-microservices-g1-small-25eedb64-w265 systemd-timesyncd[570]: Network configuration changed, trying to establish connection. Mar 10 06:50:46 gke-microservices-g1-small-25eedb64-w265 systemd-timesyncd[570]: Synchronized to time server 169.254.169.254:123 (169.254.169.254). Mar 10 06:50:47 gke-microservices-g1-small-25eedb64-w265 kernel: IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready Mar 10 06:50:47 gke-microservices-g1-small-25eedb64-w265 systemd-networkd[611]: vethe38b8eee: Gained carrier Mar 10 06:50:47 gke-microservices-g1-small-25eedb64-w265 systemd-timesyncd[570]: Network configuration changed, trying to establish connection. Mar 10 06:50:47 gke-microservices-g1-small-25eedb64-w265 systemd-timesyncd[570]: Synchronized to time server 169.254.169.254:123 (169.254.169.254). Mar 10 06:50:47 gke-microservices-g1-small-25eedb64-w265 kernel: device vethe38b8eee entered promiscuous mode Mar 10 06:50:47 gke-microservices-g1-small-25eedb64-w265 kernel: cbr0: port 31(vethe38b8eee) entered forwarding state Mar 10 06:50:47 gke-microservices-g1-small-25eedb64-w265 kernel: cbr0: port 31(vethe38b8eee) entered forwarding state Mar 10 06:50:47 gke-microservices-g1-small-25eedb64-w265 kubelet[3344]: I0310 06:50:47.113442 3344 docker_manager.go:2236] Determined pod ip after infra change: "roles-deployment-1745993421-qxf7z Mar 10 06:50:47 gke-microservices-g1-small-25eedb64-w265 kubelet[3344]: I0310 06:50:47.115417 3344 kubelet.go:1816] SyncLoop (PLEG): "social-accounts-deployment-983093656-vh2xt-deploy-dev(e257aff Mar 10 06:50:47 gke-microservices-g1-small-25eedb64-w265 docker[3264]: time="2017-03-10T06:50:47.118506356Z" level=error msg="Handler for GET /v1.23/images/b.gcr.io-container-registry/microservice Mar 10 06:50:47 gke-microservices-g1-small-25eedb64-w265 kubelet[3344]: I0310 06:50:47.194220 3344 provider.go:119] Refreshing cache for provider: *gcp_credentials.dockerConfigKeyProvider Mar 10 06:50:47 gke-microservices-g1-small-25eedb64-w265 kernel: IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready Mar 10 06:50:47 gke-microservices-g1-small-25eedb64-w265 systemd-udevd[6847]: Could not generate persistent MAC address for veth2228e3ba: No such file or directory Mar 10 06:50:47 gke-microservices-g1-small-25eedb64-w265 systemd-timesyncd[570]: Network configuration changed, trying to establish connection. Mar 10 06:50:47 gke-microservices-g1-small-25eedb64-w265 systemd-timesyncd[570]: Synchronized to time server 169.254.169.254:123 (169.254.169.254). Mar 10 06:50:47 gke-microservices-g1-small-25eedb64-w265 systemd-timesyncd[570]: Network configuration changed, trying to establish connection. Mar 10 06:50:47 gke-microservices-g1-small-25eedb64-w265 systemd-timesyncd[570]: Synchronized to time server 169.254.169.254:123 (169.254.169.254). </pre> <p><strong>Question:</strong> This is possible to avoid/reduce amount of restarts and solve networking issues to make our system more stable?</p> </div>

关于LVS+KeepAlived,出现Connection reset by peer

我配置完LVS+KeepAlived之后(是一个socket服务的lvs集群),RS日志中总是不停的在出现java.io.IOException: Connection reset by peer错误 keepAlived配置如下: global_defs { lvs_id LVS_1 } vrrp_instance VI_1 { state MASTER interface eth0 lvs_sync_daemon_interface eth0 virtual_router_id 50 priority 100 advert_int 1 smtp_alert garp_master_delay 1 preempt_delay 1 authentication { auth_type PASS auth_pass 1111 } virtual_ipaddress { 172.16.212.130 } } virtual_server 172.16.212.130 8066 { delay_loop 5 lb_algo wrr lb_kind DR protocol TCP real_server 172.16.212.200 8066 { weight 1 TCP_CHECK { connect_timeout 3 nb_get_retry 3 delay_before_retry 3 connect_port 8066 } } real_server 172.16.212.201 8066 { weight 1 TCP_CHECK { connect_timeout 3 nb_get_retry 3 delay_before_retry 3 connect_port 8066 } } real_server 172.16.212.202 8066 { weight 1 TCP_CHECK { connect_timeout 3 nb_get_retry 3 delay_before_retry 3 connect_port 8066 } } real_server 172.16.212.203 8066 { weight 1 TCP_CHECK { connect_timeout 3 nb_get_retry 3 delay_before_retry 3 connect_port 8066 } } real_server 172.16.212.204 8066 { weight 1 TCP_CHECK { connect_timeout 3 nb_get_retry 3 delay_before_retry 3 connect_port 8066 } } real_server 172.16.212.205 8066 { weight 1 TCP_CHECK { connect_timeout 3 nb_get_retry 3 delay_before_retry 3 connect_port 8066 } } real_server 172.16.212.206 8066 { weight 1 TCP_CHECK { connect_timeout 3 nb_get_retry 3 delay_before_retry 3 connect_port 8066 } } real_server 172.16.212.207 8066 { weight 1 TCP_CHECK { connect_timeout 3 nb_get_retry 3 delay_before_retry 3 connect_port 8066 } } }

xdebug只能通过从cli而不是浏览器运行脚本来触发

<div class="post-text" itemprop="text"> <p>I have a Docker container running apache2 php5 and xdebug. I can only trigger xdebug when I run a php script from the command line via root on the docker container. I get an xdebug log file with the following entries:</p> <pre><code>Log opened at 2015-11-12 19:34:30 I: Checking remote connect back address. I: Checking header 'HTTP_X_FORWARDED_FOR'. I: Checking header 'REMOTE_ADDR'. W: Remote address not found, connecting to configured address/port: 192.168.9.12:9000. :-| I: Connected to client. :-) </code></pre> <p>When I try to connect to a simple hello world php page via a browser and an XDEBUG_SESSION cookie I get no response from xdebug. I do get the page sent back to the browser, but no entry into the xdebug log file. </p> <p>I think I may have some sort of permissions issue. Apache is run under the www-data user while the script is run under root. Below is my xdebug configuration: </p> <pre><code>xdebug xdebug support =&gt; enabled Version =&gt; 2.4.0beta1 IDE Key =&gt; PHPSTORM Supported protocols =&gt; Revision DBGp - Common DeBuGger Protocol =&gt; $Revision: 1.145 $ Directive =&gt; Local Value =&gt; Master Value xdebug.auto_trace =&gt; Off =&gt; Off xdebug.cli_color =&gt; 0 =&gt; 0 xdebug.collect_assignments =&gt; Off =&gt; Off xdebug.collect_includes =&gt; On =&gt; On xdebug.collect_params =&gt; 0 =&gt; 0 xdebug.collect_return =&gt; Off =&gt; Off xdebug.collect_vars =&gt; Off =&gt; Off xdebug.coverage_enable =&gt; On =&gt; On xdebug.default_enable =&gt; On =&gt; On xdebug.dump.COOKIE =&gt; no value =&gt; no value xdebug.dump.ENV =&gt; no value =&gt; no value xdebug.dump.FILES =&gt; no value =&gt; no value xdebug.dump.GET =&gt; no value =&gt; no value xdebug.dump.POST =&gt; no value =&gt; no value xdebug.dump.REQUEST =&gt; no value =&gt; no value xdebug.dump.SERVER =&gt; no value =&gt; no value xdebug.dump.SESSION =&gt; no value =&gt; no value xdebug.dump_globals =&gt; On =&gt; On xdebug.dump_once =&gt; On =&gt; On xdebug.dump_undefined =&gt; Off =&gt; Off xdebug.extended_info =&gt; On =&gt; On xdebug.file_link_format =&gt; no value =&gt; no value xdebug.force_display_errors =&gt; Off =&gt; Off xdebug.force_error_reporting =&gt; 0 =&gt; 0 xdebug.halt_level =&gt; 0 =&gt; 0 xdebug.idekey =&gt; PHPSTORM =&gt; PHPSTORM xdebug.max_nesting_level =&gt; 256 =&gt; 256 xdebug.max_stack_frames =&gt; -1 =&gt; -1 xdebug.overload_var_dump =&gt; On =&gt; On xdebug.profiler_aggregate =&gt; Off =&gt; Off xdebug.profiler_append =&gt; Off =&gt; Off xdebug.profiler_enable =&gt; On =&gt; On xdebug.profiler_enable_trigger =&gt; Off =&gt; Off xdebug.profiler_enable_trigger_value =&gt; no value =&gt; no value xdebug.profiler_output_dir =&gt; /tmp =&gt; /tmp xdebug.profiler_output_name =&gt; cachegrind.out.%p =&gt; cachegrind.out.%p xdebug.remote_addr_header =&gt; no value =&gt; no value xdebug.remote_autostart =&gt; On =&gt; On xdebug.remote_connect_back =&gt; On =&gt; On xdebug.remote_cookie_expire_time =&gt; 3600 =&gt; 3600 xdebug.remote_enable =&gt; On =&gt; On xdebug.remote_handler =&gt; dbgp =&gt; dbgp xdebug.remote_host =&gt; 192.168.9.12 =&gt; localhost xdebug.remote_log =&gt; /xdebug.log =&gt; /xdebug.log xdebug.remote_mode =&gt; req =&gt; req xdebug.remote_port =&gt; 9000 =&gt; 9000 xdebug.scream =&gt; Off =&gt; Off xdebug.show_error_trace =&gt; On =&gt; On xdebug.show_exception_trace =&gt; Off =&gt; Off xdebug.show_local_vars =&gt; Off =&gt; Off xdebug.show_mem_delta =&gt; Off =&gt; Off xdebug.trace_enable_trigger =&gt; Off =&gt; Off xdebug.trace_enable_trigger_value =&gt; no value =&gt; no value xdebug.trace_format =&gt; 0 =&gt; 0 xdebug.trace_options =&gt; 0 =&gt; 0 xdebug.trace_output_dir =&gt; /tmp =&gt; /tmp xdebug.trace_output_name =&gt; trace.%c =&gt; trace.%c xdebug.var_display_max_children =&gt; 128 =&gt; 128 xdebug.var_display_max_data =&gt; 512 =&gt; 512 xdebug.var_display_max_depth =&gt; 3 =&gt; 3 </code></pre> <p>Is there any thing else I can do to debug this a little bit better, any other xdebug settings I should try ? </p> <p>Thanks, </p> <p>Warren</p> </div>

k8s 集群 The connection to the server localhost:8080 was refused - did you specify the right host or port?

wuming@master kubernetes]$ sudo kubectl get nodes 出现 The connection to the server localhost:8080 was refused - did you specify the right host or port? 1.echo "export KUBECONFIG=/etc/kubernetes/admin.conf" >> profile 2. 执行 export KUBECONFIG=/etc/kubernetes/admin.conf这个文件下根本没有admin.conf 3. Run these commands solved this issue: mkdir -p $HOME/.kube sudo cp -i /etc/kubernetes/admin.conf $HOME/.kube/config sudo chown $(id -u):$(id -g) $HOME/.kube/config 这个还没有尝试 4. 启动顺序不对 systemctl start etcd systemctl start docker systemctl start kube-apiserver systemctl start kube-controller-manager systemctl start kube-scheduler systemctl start kubelet systemctl start kube-proxy 5.copy /root 下的admin.conf 到 work 也是export 环境变量 请问大佬这个如何解决,为何我的admin.conf 没有

大学四年自学走来,这些私藏的实用工具/学习网站我贡献出来了

大学四年,看课本是不可能一直看课本的了,对于学习,特别是自学,善于搜索网上的一些资源来辅助,还是非常有必要的,下面我就把这几年私藏的各种资源,网站贡献出来给你们。主要有:电子书搜索、实用工具、在线视频学习网站、非视频学习网站、软件下载、面试/求职必备网站。 注意:文中提到的所有资源,文末我都给你整理好了,你们只管拿去,如果觉得不错,转发、分享就是最大的支持了。 一、电子书搜索 对于大部分程序员...

在中国程序员是青春饭吗?

今年,我也32了 ,为了不给大家误导,咨询了猎头、圈内好友,以及年过35岁的几位老程序员……舍了老脸去揭人家伤疤……希望能给大家以帮助,记得帮我点赞哦。 目录: 你以为的人生 一次又一次的伤害 猎头界的真相 如何应对互联网行业的「中年危机」 一、你以为的人生 刚入行时,拿着傲人的工资,想着好好干,以为我们的人生是这样的: 等真到了那一天,你会发现,你的人生很可能是这样的: ...

Java基础知识面试题(2020最新版)

文章目录Java概述何为编程什么是Javajdk1.5之后的三大版本JVM、JRE和JDK的关系什么是跨平台性?原理是什么Java语言有哪些特点什么是字节码?采用字节码的最大好处是什么什么是Java程序的主类?应用程序和小程序的主类有何不同?Java应用程序与小程序之间有那些差别?Java和C++的区别Oracle JDK 和 OpenJDK 的对比基础语法数据类型Java有哪些数据类型switc...

我以为我学懂了数据结构,直到看了这个导图才发现,我错了

数据结构与算法思维导图

技术大佬:我去,你写的 switch 语句也太老土了吧

昨天早上通过远程的方式 review 了两名新来同事的代码,大部分代码都写得很漂亮,严谨的同时注释也很到位,这令我非常满意。但当我看到他们当中有一个人写的 switch 语句时,还是忍不住破口大骂:“我擦,小王,你丫写的 switch 语句也太老土了吧!” 来看看小王写的代码吧,看完不要骂我装逼啊。 private static String createPlayer(PlayerTypes p...

和黑客斗争的 6 天!

互联网公司工作,很难避免不和黑客们打交道,我呆过的两家互联网公司,几乎每月每天每分钟都有黑客在公司网站上扫描。有的是寻找 Sql 注入的缺口,有的是寻找线上服务器可能存在的漏洞,大部分都...

Linux 会成为主流桌面操作系统吗?

整理 |屠敏出品 | CSDN(ID:CSDNnews)2020 年 1 月 14 日,微软正式停止了 Windows 7 系统的扩展支持,这意味着服役十年的 Windows 7,属于...

讲一个程序员如何副业月赚三万的真实故事

loonggg读完需要3分钟速读仅需 1 分钟大家好,我是你们的校长。我之前讲过,这年头,只要肯动脑,肯行动,程序员凭借自己的技术,赚钱的方式还是有很多种的。仅仅靠在公司出卖自己的劳动时...

学习总结之HTML5剑指前端(建议收藏,图文并茂)

前言学习《HTML5与CSS3权威指南》这本书很不错,学完之后我颇有感触,觉得web的世界开明了许多。这本书是需要有一定基础的web前端开发工程师。这本书主要学习HTML5和css3,看...

女程序员,为什么比男程序员少???

昨天看到一档综艺节目,讨论了两个话题:(1)中国学生的数学成绩,平均下来看,会比国外好?为什么?(2)男生的数学成绩,平均下来看,会比女生好?为什么?同时,我又联想到了一个技术圈经常讨...

搜狗输入法也在挑战国人的智商!

故事总是一个接着一个到来...上周写完《鲁大师已经彻底沦为一款垃圾流氓软件!》这篇文章之后,鲁大师的市场工作人员就找到了我,希望把这篇文章删除掉。经过一番沟通我先把这篇文章从公号中删除了...

副业收入是我做程序媛的3倍,工作外的B面人生是怎样的?

提到“程序员”,多数人脑海里首先想到的大约是:为人木讷、薪水超高、工作枯燥…… 然而,当离开工作岗位,撕去层层标签,脱下“程序员”这身外套,有的人生动又有趣,马上展现出了完全不同的A/B面人生! 不论是简单的爱好,还是正经的副业,他们都干得同样出色。偶尔,还能和程序员的特质结合,产生奇妙的“化学反应”。 @Charlotte:平日素颜示人,周末美妆博主 大家都以为程序媛也个个不修边幅,但我们也许...

MySQL数据库面试题(2020最新版)

文章目录数据库基础知识为什么要使用数据库什么是SQL?什么是MySQL?数据库三大范式是什么mysql有关权限的表都有哪几个MySQL的binlog有有几种录入格式?分别有什么区别?数据类型mysql有哪些数据类型引擎MySQL存储引擎MyISAM与InnoDB区别MyISAM索引与InnoDB索引的区别?InnoDB引擎的4大特性存储引擎选择索引什么是索引?索引有哪些优缺点?索引使用场景(重点)...

新一代神器STM32CubeMonitor介绍、下载、安装和使用教程

关注、星标公众号,不错过精彩内容作者:黄工公众号:strongerHuang最近ST官网悄悄新上线了一款比较强大的工具:STM32CubeMonitor V1.0.0。经过我研究和使用之...

记一次腾讯面试,我挂在了最熟悉不过的队列上……

腾讯后台面试,面试官问:如何自己实现队列?

如果你是老板,你会不会踢了这样的员工?

有个好朋友ZS,是技术总监,昨天问我:“有一个老下属,跟了我很多年,做事勤勤恳恳,主动性也很好。但随着公司的发展,他的进步速度,跟不上团队的步伐了,有点...

我入职阿里后,才知道原来简历这么写

私下里,有不少读者问我:“二哥,如何才能写出一份专业的技术简历呢?我总感觉自己写的简历太烂了,所以投了无数份,都石沉大海了。”说实话,我自己好多年没有写过简历了,但我认识的一个同行,他在阿里,给我说了一些他当年写简历的方法论,我感觉太牛逼了,实在是忍不住,就分享了出来,希望能够帮助到你。 01、简历的本质 作为简历的撰写者,你必须要搞清楚一点,简历的本质是什么,它就是为了来销售你的价值主张的。往深...

冒泡排序动画(基于python pygame实现)

本项目效果初始截图如下 动画见本人b站投稿:https://www.bilibili.com/video/av95491382 本项目对应github地址:https://github.com/BigShuang python版本:3.6,pygame版本:1.9.3。(python版本一致应该就没什么问题) 样例gif如下 ======================= 大爽歌作,mad

Redis核心原理与应用实践

Redis核心原理与应用实践 在很多场景下都会使用Redis,但是到了深层次的时候就了解的不是那么深刻,以至于在面试的时候经常会遇到卡壳的现象,学习知识要做到系统和深入,不要把Redis想象的过于复杂,和Mysql一样,是个读取数据的软件。 有一个理解是Redis是key value缓存服务器,更多的优点在于对value的操作更加丰富。 安装 yum install redis #yum安装 b...

现代的 “Hello, World”,可不仅仅是几行代码而已

作者 |Charles R. Martin译者 | 弯月,责编 | 夕颜头图 |付费下载自视觉中国出品 | CSDN(ID:CSDNnews)新手...

带了6个月的徒弟当了面试官,而身为高级工程师的我天天修Bug......

即将毕业的应届毕业生一枚,现在只拿到了两家offer,但最近听到一些消息,其中一个offer,我这个组据说客户很少,很有可能整组被裁掉。 想问大家: 如果我刚入职这个组就被裁了怎么办呢? 大家都是什么时候知道自己要被裁了的? 面试软技能指导: BQ/Project/Resume 试听内容: 除了刷题,还有哪些技能是拿到offer不可或缺的要素 如何提升面试软实力:简历, 行为面试,沟通能...

!大部分程序员只会写3年代码

如果世界上都是这种不思进取的软件公司,那别说大部分程序员只会写 3 年代码,恐怕就没有程序员这种职业。

离职半年了,老东家又发 offer,回不回?

有小伙伴问松哥这个问题,他在上海某公司,在离职了几个月后,前公司的领导联系到他,希望他能够返聘回去,他很纠结要不要回去? 俗话说好马不吃回头草,但是这个小伙伴既然感到纠结了,我觉得至少说明了两个问题:1.曾经的公司还不错;2.现在的日子也不是很如意。否则应该就不会纠结了。 老实说,松哥之前也有过类似的经历,今天就来和小伙伴们聊聊回头草到底吃不吃。 首先一个基本观点,就是离职了也没必要和老东家弄的苦...

2020阿里全球数学大赛:3万名高手、4道题、2天2夜未交卷

阿里巴巴全球数学竞赛( Alibaba Global Mathematics Competition)由马云发起,由中国科学技术协会、阿里巴巴基金会、阿里巴巴达摩院共同举办。大赛不设报名门槛,全世界爱好数学的人都可参与,不论是否出身数学专业、是否投身数学研究。 2020年阿里巴巴达摩院邀请北京大学、剑桥大学、浙江大学等高校的顶尖数学教师组建了出题组。中科院院士、美国艺术与科学院院士、北京国际数学...

为什么你不想学习?只想玩?人是如何一步一步废掉的

不知道是不是只有我这样子,还是你们也有过类似的经历。 上学的时候总有很多光辉历史,学年名列前茅,或者单科目大佬,但是虽然慢慢地长大了,你开始懈怠了,开始废掉了。。。 什么?你说不知道具体的情况是怎么样的? 我来告诉你: 你常常潜意识里或者心理觉得,自己真正的生活或者奋斗还没有开始。总是幻想着自己还拥有大把时间,还有无限的可能,自己还能逆风翻盘,只不是自己还没开始罢了,自己以后肯定会变得特别厉害...

HTTP与HTTPS的区别

面试官问HTTP与HTTPS的区别,我这样回答让他竖起大拇指!

程序员毕业去大公司好还是小公司好?

虽然大公司并不是人人都能进,但我仍建议还未毕业的同学,尽力地通过校招向大公司挤,但凡挤进去,你这一生会容易很多。 大公司哪里好?没能进大公司怎么办?答案都在这里了,记得帮我点赞哦。 目录: 技术氛围 内部晋升与跳槽 啥也没学会,公司倒闭了? 不同的人脉圈,注定会有不同的结果 没能去大厂怎么办? 一、技术氛围 纵观整个程序员技术领域,哪个在行业有所名气的大牛,不是在大厂? 而且众所...

男生更看重女生的身材脸蛋,还是思想?

往往,我们看不进去大段大段的逻辑。深刻的哲理,往往短而精悍,一阵见血。问:产品经理挺漂亮的,有点心动,但不知道合不合得来。男生更看重女生的身材脸蛋,还是...

程序员为什么千万不要瞎努力?

本文作者用对比非常鲜明的两个开发团队的故事,讲解了敏捷开发之道 —— 如果你的团队缺乏统一标准的环境,那么即使勤劳努力,不仅会极其耗时而且成果甚微,使用...

为什么程序员做外包会被瞧不起?

二哥,有个事想询问下您的意见,您觉得应届生值得去外包吗?公司虽然挺大的,中xx,但待遇感觉挺低,马上要报到,挺纠结的。

立即提问
相关内容推荐