原创 Hive1.2.1

版本:apache-hive-1.2.1 使用到的數據:鏈接:http://pan.baidu.com/s/1c2xmk1M 密碼:uucs 1. train 0 1.創建10min數據託管表。 create table Ten

原创 Hadoop2.8.0

1.Mapreduce模型 map階段: 輸入數據格式的解析:inputformat 輸入數據的處理:mapper 數組分組:partitioner map階段有一定量的maptask組成,其實就是多線程在處理我們的任務,多個

原创 Spark2.1.1

環境: Spark 2.1.1 準備工作 persons.csv: +----+--------+---------+--------------+--------+ |Id_P|LastName

原创 Face_recognition

前提是裝好Face_recognition, 準備一張圖片,圖片中有三個人 face_detect.py #!/usr/bin/python # -*- coding: utf8 -*- import face_recogn

原创 spark

實現的思路是使用Spark內置函數, combineByKeyWithClassTag函數,藉助HashSet的排序,此例是取組內最大的N個元素一下是代碼: createcombiner就簡單的將首個元素裝進HashSet然後返回

原创 Ros

在學習ROS kinetic wiki中的編寫簡單的Service和Client (Python) 中編寫服務端的時候運行的時候發現: from: can't read /var/mail/beginner_tutorials.

原创 Docker< map has no entry for key "Volumes">

1.Docker版本信息 Client: Version: 17.12.0-ce API version: 1.35 Go version: go1.9.2 Git commit: c97c6d6 B

原创 Opencv3.4.0---將視頻中的幀保存爲圖片

現在有一個收集人臉的需求,每一張照片只有一個人。我的解決辦法是用收集錄制一段視頻,然後上傳到PC上。在PC上使用OpenCV將圖片中的每一幀保存爲JPG圖片。 以下是代碼: import time import cv2 if

原创 OpenFace

1.OpenFace簡介 http://cmusatyalab.github.io/openface/ 安裝就按照官方教程來就好了 裝完各種依賴之後運行一下命令 https://github.com/cmusatyalab/op

原创 Redis4.0.2

環境: Centos 1708 redis4.0.2 準備: yum install gcc yum install tcl 在官網上下載了redis-4.0.2.tar.gz之後,使用tar命令解壓 make MALLOC

原创 ubuntu16.04

一定要通過這個源安裝umake,否則下面搜不到pycharm-professional版本 sudo add-apt-repository ppa:ubuntu-desktop/ubuntu-make sudo apt-get u

原创 Docker

#!/bin/bash # Delete all containers docker rm $(docker ps -a -q) # Delete all images docker rmi $(docker images -q)

原创 ROS -Kinetic

1.安裝rbx1 cd ~/catkin_ws/src git clone https://github.com/pirobot/rbx1.git cd .. catkin_make rospack profile 2.安裝Ar

原创 Ros-Kinetic

1.環境準備 Ubuntu16.04 ROS-kinetic opencv3.3.1 video-stream-opencv 一個USB攝像頭 video-stream-opencv是USB攝像頭驅動,關於它的介紹,請看githu

原创 Torch7

git clone https://github.com/torch/distro.git ~/torch --recursive cd ~/torch; bash install-deps; ./install.sh sourc