原创 java操作hdfs java.lang.NoClassDefFoundError: org/apache/hadoop/fs/CanUnbuffer
環境: hdfs 2.7.7 pom: <dependency> <groupId>org.apache.hadoop</groupId> <artifactId>hadoop-hdfs</artifactId> <version
原创 BulkLoad從hdfs導入hbase中數據總結
背景 由於新需求需要新建hbase表,將hdfs中給定的目錄下的文件導入到hbase表中,一種格式的文件(多種格式可能需要合併吧,目前沒有這個需求,但是也可以分多次導入到hbase中吧,除非rowkey的構成需要多個文件,目前沒有這種需求
原创 idea沒有maven窗口
1.idea的view-tool windows - maven project 沒有 導致右側的maven視圖打不開,網上找了各種方法發現沒用。 發現pom文件和其他的maven項目的不一樣,沒有前面藍色的m,可以右鍵點擊有 add a
原创 Disconnected from the target VM, address: '127.0.0.1:52165', transp
maven項目手動引spring-kafka+springboot 因爲沒有用springboot的全量pom包,所以單獨引用spring-kafka導致版本不一致 啓動項目總是顯示 Disconnected from the targe
原创 web項目連接mysql總是抱錯
今天寫了個web項目連接mysql自己在單元測試跑沒有問題,但是一起項目運行就報下面的錯誤java.lang.ClassNotFoundException: com.mysql.jdbc.Driverat org.apache.catal
原创 springboot讀取resources文件下的文件
第一次讀取文件 文件位置 URL url = this.getClass().getClassLoader().getResource("tagfile/tags"); 本地啓動項目都是沒問題能讀取到,但是打成jar包後在服務器執行
原创 Hbase 自動續約kerberos認證失敗
1.問題情況 日誌中存在大量的: org.apache.hadoop.security.UserGroupInformation Not attempting to re-login since the last re-login wa
原创 Failed to execute goal com.github.eirslett:frontend-maven-plugin:1.6
Failed to execute goal com.github.eirslett:frontend-maven-plugin:1.6:install-node-and-npm (install node and npm) on pro
原创 爲什麼hbase的value都是使用字節數組byte[]來存儲
這是原文,上面的答案翻譯 https://stackoverflow.com/questions/11834544/why-hbase-stores-value-as-byte-array-instead-of-typed-value-l
原创 datatable 合併單元格 跨頁顯示
跨頁的代碼 簡單說一下原理,就是相同的需要合併的行的第一行需要將下面的行覆蓋,rowspan就是佔用幾行的意思(一開始還以爲是所在行的索引),然後在後臺可以很方便的計算出有幾行的是相同的需要合併。 "columnDefs": [{
原创 dubbo引用自定義filter
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'providers:dubbo:xxx': Error se
原创 DataTables查詢數據返回空的時候總是彈出一個提示框
提示框內容如下 DataTables warning: table id=dataTable - Invalid JSON response. For more information about this error, please s
原创 log4j和logback衝突
hbase的java api默認是log4j打印日誌,但是springboot現在默認都是logback打印日誌,所以啓動項目就會有衝突,查詢了一下可以引入一個jar包 <dependency> <groupId>org.s