原创 GitHub新手教程

記錄一下GitHub的Hello Wrold 1、必然是創建GitHub的帳號 2、創建新的倉庫 2.1點擊new repository創建新的倉庫啦 2.2取個姓名 2.3加個描述 2.4選擇README的選項 3、創建新的Branc

原创 mesos介紹

當公司裏有很多框架例如spark、mapreduce、mpi等等,當這些框架需要部署到一個公共的集羣中,讓它們共享集羣資源,並對資源進行統一使用,這就誕生了mesos、yarn、k8s等資源管理器。 資源管理器的特點:資源管理和調度平臺應

原创 設置python 模塊調用路徑

python初學者通常寫完模塊後,不知道放在那個路徑下能被shell調用,這裏有幾個很簡單的命令來查詢和改變python庫的路徑: 首先import sys 接着查詢sys.path 如果顯示的結果沒有你想要的路徑 如果你想加入/home

原创 printf重定向後的Log機制

嵌入式開發中通常採用printf來調試或者輸出log。在分級log中通常要求保留log等級最高的輸出,但是printf只能通過串口或者控制檯輸出,並不能很好的保留log信息。那麼這時候我們需要重構printf函數,將其二進制的輸出重定向到

原创 mesos Agent disconnected

原因: 時區不對 查看時區: $date -R 修改時區; cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime   同步時間: $yum install ntp $vi /etc/

原创 cpu gpu混合集羣搭建

分佈式集羣搭建,管理cpu和gpu集羣 系統: master-》centos7 cpu-》cenos7 gpu -》ubuntu 1、master 安裝 systemctl stop firewalld && systemctl di

原创 centos 7 修改hostname正確做法

修改/etc/sysconfig/network之流的完全無用 用hostnamectl纔是王道 The syntax is:# hostnamectl set-hostname Your-New-Host-Name-Here #

原创 systemctl start mesos-slave problem

在安裝配置mesos agent的過程中發現配置docker_config的問題: 當執行$systemctl start mesos-slave.service的時候,發現報錯,然後不斷重啓 mesos-slave 問題在於: dock

原创 ERROR Prevent proxy cycle, rejecting request

It looks like the problem is that the instances are all registering themselves as 'localhost.localdomain' rather than

原创 docker系統時間和host系統時間有drift問題解決

今天在製作docker image的時候遇到一問題發現docker run起來的系統時間和host 的系統時間不一致。這種分分鐘的事情因爲我用了os x beta而頭疼一陣。 解決過程: 1、時區設置問題: 在ubuntu下的docker

原创 局域網內部署mesos,marathon,通過nginx反向代理訪問

集羣組成: 環境:centos 7   10.27.2.8: mesos master ,mesos slave ,zookeeper,docker 10.27.3.4: mesos slave, zookeeper,docker 10.

原创 squid代理yum,docker,rpm

跳板機上設置 1、squid配置 $vi /etc/squid/squid.conf  設置 # And finally deny all other access to this proxy by benjen http_acces

原创 replication factor: 3 larger than available brokers: 1

bug log: [2016-07-31 23:50:48,022] ERROR [KafkaApi-0] Error when handling request {group_id=kafka-python-default-group

原创 docker和iptables關係

1、首先了解一下docker的網絡機制 docker有4中網絡模式: a.host b.container c.none d.bridge docker使用linux中的namespace隔離資源,一個docker容器會分配一個獨立的ne

原创 靜默安裝服務器搭建

1、首先要關閉firwalld和selinux systemctl stop firwalld setenforce 0 2、安裝dhcp yum -y install dhcp cat /etc/dhcp/dhcpd.conf # #