爬坑:hive的NULL值過濾
hive的底層儲存的是’NULL’是個字串,想要過濾掉NULL值,使用is not null無效
insert overwrite local directory '/home/hadoop/zoujc/result'
select distinct username
from
xxxtable
where lower(password) != 'abnormal'
and password != '' and password != 'NULL' and password != 'null'
and to_date(LastLoginTime) >= '2017-10-14' and to_date (LastLoginTime) <= '2018-04-14'
order by username
相關推薦
爬坑:hive的NULL值過濾
hive的底層儲存的是’NULL’是個字串,想要過濾掉NULL值,使用is not null無效 insert overwrite local directory '/home/hadoop/zoujc/result' select distinct username from xxxt
vue爬坑:把對象中的數據給了某個變量,改變一個對象的值,另一個對象也變化
stringify 變化 base 數據 ase ref eal log str 今天做項目碰到了 一個坑,一個vue變量賦值給一個新的變量,對這個新的變量裏的值做更改,vue的變量也變了。記錄一下這個坑坑~~ 然後百度搜到了一個解決方案: 就是把變量先轉成字符串,再把字符
爬坑:spark專案打包報錯(java和scala混編)
專案打包:mvn clean package -DskipTests java和scala混編打包 報錯: /Users/rocky/source/work/sparktrain/src/main/scala/com/zoujc/spark/project/dao/CourseSearchC
爬坑:hive的NULL
hive的底層儲存的是’NULL’是個字串,想要過濾掉NULL值,使用is not null無效 insert overwrite local directory '/home/hadoop/zoujc/result' select distinct usern
爬坑:Java自動拆箱
先來程式碼。你是否寫過這樣的程式碼? public static void main(String[] args) { Integer test = null; int test2 = test; } 或者說 public st
vue的爬坑之路(八)之----IOS:Safari不兼容Javascript中的Date問題
找到 () 方案 ace 格式 nbsp 後臺 get repl 在IOS5以上版本(不包含IOS5)中的Safari瀏覽器能正確解釋出Javascript中的 new Date(‘2013-10-21‘) 的日期對象。 但是在IOS5版本裏面的Safar
RocketMQ爬坑記(一):安裝使用
1. RocketMQ簡介 RocketMQ作為一款純java、分散式、佇列模型的開源訊息中介軟體(阿里的說法是不遵循任何規範的,所以不能完全用JMS的那一套東西來看它),經歷了淘寶雙十一的洗禮,在功能和效能上據說是遠超ActiveMQ。 RocketMQ簡介,其中
Java爬坑之旅:基礎篇
1.方法有返回值時儘量把返回值寫上,儘量避免不必要的坑。例如陣列的擴容中
新手vue爬坑經歷-vue賦值(一)
最近本人一直在學習vue,發現vue的資料繫結比起JQuery使用起來更加方便,不像以前在JQ裡面苦逼的操作DOM節點,每次想要更新檢視模板,都要在js裡面寫好多html,看著那些程式碼,心裡就很是煩躁。 vue的好處就是檢視和資料是繫結在一起的,我們可以通過改
git爬坑不完全指北:Permission to xxx.git denied to user的解決方案
由於對之前github賬戶名不太滿意,又不像大神一樣需要兩個賬號繫結。所以今天註冊了新賬號,想把電腦繫結到新賬號上,結果就踩坑了……報錯如標題。 在網上按照這個題目可以搜尋出一大堆的解決方案,但都是一個思路,那就是兩個賬號繫結兩個金鑰。先不說操作過程稍微複雜點吧,關鍵在於這不是我想要的結果,我就要一個
專案實戰之vue爬坑之路:vue框架中如何註冊全域性公共過濾器filter、全域性公共外掛、全域性公共元件component
專案需求: 在我們的實際專案的開發中,經常會遇到一些可以重複利用的方法和元件,比如:我們在一個專案中可能會經常用到格式化時間的方法。這個時候就需要我們把這個方法封裝起來,註冊成一個全域性的過濾器,在整個專案中都可以使用,這樣既可以提高程式碼的使用效率,也便於我們
vue 爬坑 之js 物件/陣列 賦值/拷貝 解決VUE中賦值引用後資料雙向改變的問題
淺拷貝這裡就不講了,我們直接講深拷貝 正常的陣列/物件拷貝可以直接用 const cloneObj = JSON.parse(JSON.stringify(Obj)); 這種方式可以解決相當多一部分的賦值問題,但是一些特殊屬性除外(undefined/function)
tensorflow爬坑行:資料讀取
tensorflow的資料讀取 tensorflow在讀取像imagenet這種大量影象資料,不能一次性load進記憶體時有幾個坑,Mark一記,以助後來者。關於多GPU和分散式,本文只討論資料並行方式,即每個GPU上面執行一個網路,稱為tower。
Vue爬坑之路 一:簡單介紹vue及使用vue-cli腳手架工具快速搭建專案
關於Vue.js Vue.js是最近特別火的一個前端MVVM框架,類似於Angular,但更容易上手,而且因為作者是中國人的原因,所以Vue.js的中文文件比較齊全,很多的問題都能在官網文件中得到解決! 使用cnpm安裝Vue.js 首先得下載一下np
Vue爬坑之路 二:使用Muse-UI前端框架及axios,實現簡單登入頁
一:安裝UI元件 Muse UI 基於 Vue2.0 開發,Vue2.0是當下最快的前端框架之一,小巧,api友好,可用於開發的複雜單頁應用,安裝的方式有很多種,官方推薦的是使用npm輔助安裝: 在專案的根目錄中開啟命令提示符輸入: npm
自然語言處理爬過的坑:使用python遍歷所有的資料夾中的所有文字.標準庫OS的常用函式總結大全
# -*- coding: utf-8 -*- import os import codecs def search(filepath): #遍歷filepath下所有檔案,包括子目錄 files = os.listdir(filepath) for fil
python坑:可變物件作為函式預設值
別說話,看程式碼: >>> def aa(v, l=[]): ... l.append(v) ... print(id(l)) ... return l ... >>> >>>
談談Vagrant中的那些坑:CentOS
不起作用 通過 tar nat 工作 主機 生產 疑問 什麽 安裝了vagrant之後,當然需要將它投入使用。由於計劃中的生產環境是 CentOS 7,因此想搭建一個 基於CentOS 7(x86_64)的虛擬開發環境。 最開始的一系列工作,比如在vbox中安裝CentOS
網頁內容爬取:如何提取正文內容 BEAUTIFULSOUP的輸出
總計 排除 XML html pack prettify 樣式 start ack 創建一個新網站,一開始沒有內容,通常需要抓取其他人的網頁內容,一般的操作步驟如下: 根據url下載網頁內容,針對每個網頁的html結構特征,利用正則表達式,或者其他的方式,做文本解析,提取出
rocketMq排坑:如何設置rocketMq broker的ip地址
配置文件 clas vip 一個 同事 tex -s https osc 在工作中遇到了一個這個問題,就是我們rocketmq是部署在雲主機上的 但是我們的開發同事在自己的電腦連接rocketmq鏈接不上 報錯顯示Caused by: org.apache.rocketmq