// kubernetes/cluster/ubuntu/config-default.sh
# Optional: Enable node logging.ENABLE_NODE_LOGGING=falseLOGGING_DESTINATION=${LOGGING_DESTINATION:-elasticsearch}
# Optional: When set to true, Elasticsearch and Kibana will be setup as part of the cluster bring up.ENABLE_CLUSTER_LOGGING=falseELASTICSEARCH_LOGGING_REPLICAS=${ELASTICSEARCH_LOGGING_REPLICAS:-1}
/opt/td-agent/embedded/lib/ruby/gems/2.1.0/gems/json-1.8.1/lib/json/version.rb:3: warning: already initialized constant JSON::VERSION
/opt/td-agent/embedded/lib/ruby/2.1.0/json/version.rb:3: warning: previous definition of VERSION was here
/opt/td-agent/embedded/lib/ruby/gems/2.1.0/gems/json-1.8.1/lib/json/version.rb:4: warning: already initialized constant JSON::VERSION_ARRAY
/opt/td-agent/embedded/lib/ruby/2.1.0/json/version.rb:4: warning: previous definition of VERSION_ARRAY was here
/opt/td-agent/embedded/lib/ruby/gems/2.1.0/gems/json-1.8.1/lib/json/version.rb:5: warning: already initialized constant JSON::VERSION_MAJOR
/opt/td-agent/embedded/lib/ruby/2.1.0/json/version.rb:5: warning: previous definition of VERSION_MAJOR was here
/opt/td-agent/embedded/lib/ruby/gems/2.1.0/gems/json-1.8.1/lib/json/version.rb:6: warning: already initialized constant JSON::VERSION_MINOR
/opt/td-agent/embedded/lib/ruby/2.1.0/json/version.rb:6: warning: previous definition of VERSION_MINOR was here
/opt/td-agent/embedded/lib/ruby/gems/2.1.0/gems/json-1.8.1/lib/json/version.rb:7: warning: already initialized constant JSON::VERSION_BUILD
/opt/td-agent/embedded/lib/ruby/2.1.0/json/version.rb:7: warning: previous definition of VERSION_BUILD was here
/opt/td-agent/embedded/lib/ruby/gems/2.1.0/gems/json-1.8.1/lib/json/common.rb:99: warning: already initialized constant JSON::NaN
/opt/td-agent/embedded/lib/ruby/2.1.0/json/common.rb:99: warning: previous definition of NaN was here
/opt/td-agent/embedded/lib/ruby/gems/2.1.0/gems/json-1.8.1/lib/json/common.rb:101: warning: already initialized constant JSON::Infinity
/opt/td-agent/embedded/lib/ruby/2.1.0/json/common.rb:101: warning: previous definition of Infinity was here
/opt/td-agent/embedded/lib/ruby/gems/2.1.0/gems/json-1.8.1/lib/json/common.rb:103: warning: already initialized constant JSON::MinusInfinity
/opt/td-agent/embedded/lib/ruby/2.1.0/json/common.rb:103: warning: previous definition of MinusInfinity was here
/opt/td-agent/embedded/lib/ruby/gems/2.1.0/gems/json-1.8.1/lib/json/common.rb:128: warning: already initialized constant JSON::UnparserError
/opt/td-agent/embedded/lib/ruby/2.1.0/json/common.rb:128: warning: previous definition of UnparserError was here
kubectl get pods --namespace=kube-system
NAME READY STATUS RESTARTS AGE
fluentd-elasticsearch-1wque 1/1 Running 011m
fluentd-elasticsearch-3i6sq 1/1 Running 011m
fluentd-elasticsearch-izgpz1/1 Running 011m
fluentd-elasticsearch-ng1z91/1 Running 011m
但通过查看/var/log/fluentd.log,ok:
017-03-2407:48:54 +0000 [info]: reading config file path="/etc/td-agent/td-agent.conf"..................2017-03-2909:25:30 +0000 [info]: following tail of /var/log/containers/fluentd-elasticsearch-1wque_kube-system_fluentd-es-1b799e6a2073187b5e4a7f9827a768014912e9c57c6e20483e36e6fd9aae0c60.log
2017-03-2909:25:30 +0000 [info]: following tail of /var/log/containers/fluentd-elasticsearch-yq8rn_kube-system_fluentd-elasticsearch-843b2bceae2a362797b841fd9682551c542de0d75ace8f5100b58e1cc194d348.log
2017-03-2909:25:30 +0000 [info]: following tail of /var/log/upstart/kubelet.log
2017-03-2909:25:30 +0000 [info]: following tail of /var/log/upstart/kube-apiserver.log
2017-03-2909:25:30 +0000 [info]: following tail of /var/log/upstart/kube-controller-manager.log
2017-03-2909:25:30 +0000 [info]: Connection opened to Elasticsearch cluster => {:host=>"10.45.4.211", :port=>9200, :scheme=>"http"}, {:host=>"10.45.4.36", :port=>9200, :scheme=>"http"}, {:host=>"10.45.4.140", :port=>9200, :scheme=>"http"}
2017-03-2909:25:31 +0000 [info]: following tail of /var/log/upstart/docker.log
2017-03-2909:25:31 +0000 [info]: following tail of /var/log/upstart/flanneld.log
2017-03-2909:25:31 +0000 [info]: following tail of /var/log/upstart/etcd.log
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml&q
Mockito单元测试实例:
public class SettingServiceTest {
private List<PersonDTO> personList = new ArrayList<PersonDTO>();
@InjectMocks
private SettingPojoService settin
public class DeleteExtraSpace {
/**
* 题目:给定字符串,删除开始和结尾处的空格,并将中间的多个连续的空格合并成一个。
* 方法1.用已有的String类的trim和replaceAll方法
* 方法2.全部用正则表达式,这个我不熟
* 方法3.“重新发明轮子”,从头遍历一次
*/
public static v
今天早上打开MyEclipse时,自动关闭!弹出An error has occurred.See the log file错误提示!
很郁闷昨天启动和关闭还好着!!!打开几次依然报此错误,确定不是眼花了!
打开日志文件!找到当日错误文件内容:
--------------------------------------------------------------------------