原创 mahout實現基於物品的協同過濾算法(單機版)

參考: https://www.imooc.com/video/15792 https://blog.csdn.net/greenhandzhang/article/details/18369697 https://www.cnblo

原创 mysql安裝的時候出現無法啓動MYSQL服務。錯誤1067進程意外終止

安裝mysql出現的兩個讓人崩潰的錯誤: ERROR 2003 (HY000): Can’t connect to MySQL server on ‘localhost’ (10061) 無法啓動MYSQL服務。錯誤1067進程意外終

原创 無條件查詢數據庫某張表,mapper.xml怎麼寫

sql語句 select * from order_;

原创 mahout報錯classNotFound----jar包問題

只要用maven添加mahout-core和mahout-integration就行了,其他的包會自動依賴添加進去的。就這錯,整整一天多的時間,結果發現是jar包版本的問題,媽的,只用maven就好了嘛,省的自個麻煩。

原创 Can not find the tag library descriptor for "http://java.sun.com/jsp/jstl/core"

主要原因是缺少 jstl.jar standard.jar 兩個Jar包解決此問題的方法爲以下: 在新建的工程的WEB-INF/lib文件夾裏就會有 jstl.jar standard.jar 拷貝到出錯的工程的WEB-INF/lib

原创 Hadoop 啓動後使用JPS查看沒有DataNode

報錯:RemoteException(java.io.IOException): File /tmp/new/data.txt could only be replicated to 0 nodes instead of minRep

原创 The program 'jps' can be found in the following packages: * openjdk-8-jdk-headless * openjdk-9-jdk

參考:https://www.chendalei.com/jps_can_be_found 輸入env 查看系統環境變量是否存在JAVA_HOME,發現不存在。 在~添加JAVA環境變量: root@xxxx:~# vim ~/.pr

原创 linux命令行縮短開頭

參考: https://www.jianshu.com/p/ca7477d4b6bd 1,修改.bash_profile文件(用戶根目錄下) vi打開.bash_profile文件,找到PS1或者新增加PS1的導入: export P

原创 搭建hadoop環境,竟然到了hdfs找不到命令

參考:https://blog.csdn.net/qiangzi_lg/article/details/80528924 rm /etc/profile vi /etc/profile 注意環境變量的配置:

原创 hadoop: command not found

https://www.cnblogs.com/huxinga/p/6852860.html

原创 hadoop 8088端口網頁無法打開

需要修改/etc/hosts文件:加上本地主機的ip地址。 參考:https://blog.csdn.net/kouryoushine/article/details/78401976

原创 hadoop搭建之linux配置java6的環境變量

不小心把/etc/profile文件刪了,重新寫一個:vi /etc/profile 最討厭在vi上面編輯,搞了一上午,直接把下面的內容複製進去吧。注意要空兩格再複製,否則會丟失字符。 /etc/profile: system-wid

原创 ssh免密碼登陸

由於啓動hadoop需一遍遍輸入密碼,不方便,故設置ssh免密登陸本機 ssh-keygen -t rsa -P "" 輸入這個命令後一直回車就可以了 cat /root/.ssh/id_rsa.pub >> /