原创 error while loading shared libraries

Linux 遇到報“error while loading shared libraries .....” 錯誤的解決方法: # cat /etc/ld.so.conf 如果顯示只有 ‘include ld.so.conf.d/*.con

原创 This account is currently not available

Linux 切換用戶 This account is currently not available 錯誤 解決辦法:usermod -s /bin/bash username 例: [root@hadoop1 apptrac

原创 hive時間函數轉換

日期函數UNIX時間戳轉日期函數: from_unixtime語法:   from_unixtime(bigint unixtime[, string format]) 返回值: string 說明: 轉化UNIX時間戳(從1

原创 修改CM管理主機IP(CDH5.0集羣IP更改)

在一個項目部署過程中,通過CM5.0部署好了集羣(27個節點),但是由於種種原因需要更換集羣IP網段。由於之前沒遇到過這事兒,真是擔心會重新再部署集羣,還好通過以下方法成功實現了更改。 1、修改集羣所有機器/etc/hosts 文件I

原创 Linux 計算時間差

 # yyyymmdd hhmmss 格式顯示 date +%Y%m%d' '%H:%M:%S --計算時間差  starttime=`date +%s` sleep 10 endtime=`date +%s` totaltime

原创 CDH4.4安裝筆記

安裝環境redhat 6.2 1、修改主機名稱 vi /etc/sysconfig/network hadoop1-8 2、修改 /etc/hosts vi /etc/hosts 10.193.223.4 hadoop1 10.193.

原创 Currently the writer can only accept BytesRefArrayWritableat

在往hive rcfile表insert數據報“Currently the writer can only accept BytesRefArrayWritableat” 錯誤的解決辦法 1、查看hive表完整屬性 hive>descri

原创 禁止FTP用戶訪問上級目錄

在生產環節往往需要限制FTP用戶訪問其他目錄的權限,只需要設置ftp配置文件的兩個參數即可 操作如下: $cd /etc/vsftpd/ $ll -rw-r--r--  1 root root   32 Oct  8 12:21 chro

原创 關閉linux 提示 You have new mail in /var/spool/mail/root

在RedHat上執行命令如果總是提示“You have new mail in /var/spool/mail/root”;關閉方式如下 更改環境變量 echo "unset MAILCHECK" >> /etc/profile sou

原创 hbase region is not online

今天在往hbase表入數據的時候遇到了這個問題 14/10/09 11:39:45 INFO client.AsyncProcess: #4, table=hb_apptrack_detail, attempt=10/35 faile

原创 ssh: symbol lookup error: ssh: undefined symbol: EVP_aes_128_ctr

在客戶現場安裝hadoop環境的時候,創建了一個普通用戶但是無法相互ssh登陸, 提示 ssh: symbol lookup error: ssh: undefined symbol: EVP_aes_128_ctr 在網上查了好久終於解

原创 Liunx httpd 升級

由於最近安全漏洞掃描主機RedHat6.2 中的http版本太低,存在漏洞,所以需要進行升級。 操作步驟如下: 1、上傳介質到主機任意目錄,進入目錄解壓 cd /home/security tar -zxvf httpd-2.4