自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

bryyj的博客

和喜欢的人做喜欢的事

  • 博客(15)
  • 资源 (2)
  • 收藏
  • 关注

转载 78. Subsets

Given a set of distinct integers, nums, return all possible subsets.Note: The solution set must not contain duplicate subsets.For example, If nums = [1,2,3], a solution is:[ [3], [1], [2], [1,

2016-08-31 14:11:01 291

转载 61. Rotate List

Given a list, rotate the list to the right by k places, where k is non-negative.For example: Given 1->2->3->4->5->NULL and k = 2, return 4->5->1->2->3->NULL. class Solution {public: ListNode* ro

2016-08-24 16:48:44 292

原创 189. Rotate Array

Rotate an array of n elements to the right by k steps.For example, with n = 7 and k = 3, the array [1,2,3,4,5,6,7] is rotated to [5,6,7,1,2,3,4].Note: Try to come up as many solutions as you can, ther

2016-08-24 12:53:43 269

原创 63. Unique Paths II

Follow up for “Unique Paths”:Now consider if some obstacles are added to the grids. How many unique paths would there be?An obstacle and empty space is marked as 1 and 0 respectively in the grid.For ex

2016-08-23 15:29:32 351

转载 62. Unique Paths

A robot is located at the top-left corner of a m x n grid (marked ‘Start’ in the diagram below).The robot can only move either down or right at any point in time. The robot is trying to reach the botto

2016-08-23 14:21:37 226

原创 windows下的eclipse连接hadoop集群中遇到的问题

前提条件: 虚拟机上已部署好hadoop集群(hadoop-2.5.0) 在网上下载hadoop-eclipse-plugin-2.5.0.保存至eclipse\plugins中 配置步骤: 1 window->preferences,添加hadoop的解压包所在的路径 2 window->Open perspective->other->map/reduc

2016-07-19 13:46:44 715 1

原创 socket简单编程用例

简单的linux下的socket编程:server.cpp是服务器端代码,client.cpp是客户端代码,实现的主要功能是:1 客户端从服务器读取一个字符串,并打印出来。2 客户端向服务器写数据 服务器端的代码 server.cpp#include <sys/socket.h>#include <netinet/in.h>#include <arpa/inet.h>#include <st

2016-07-01 17:33:04 795 1

转载 Sublime Text2上搭建c++环境(windows)

一、下载安装Sublime text2 for windows下载地址:http://www.sublimetext.com/二、下载安装 MinGW 与系统变量设置2.1 安装MinGW本文使用的C/C++编译器是gcc/g++,所以需要下载安装MinGW(下载地址:http://sourceforge.net/projects/mingw/) 软件安装界面: 安装完成后会让用户选择需要下

2016-06-23 18:19:48 414

原创 flume常用属性的说明

flume agent的source、channel、sink常用属性的说明

2016-06-17 18:08:05 4973

原创 vim: command not found

安装vim我们在安装完Centos后,它默认的是安装了VI编辑器,VIM是没有安装的,所以我们在使用vim test.txt时会提示: vim command not found 。。。 这就是说明我们的Linux环境没有安装vim编辑器,下面我们来说一下如何安装这个编辑器: vim编辑器需要安装三个包: vim-enhanced-7.0.109-7.el5 vim-minimal

2016-06-16 15:21:05 29318 1

原创 Flume安装

flume安装

2016-06-15 22:02:19 625

翻译 Flume 1.5.0 用户指南

1 序言1.1 概述  Apache Flume 是一个分布式的、可靠的,并且可用于有效的收集,聚合和移动来自许多不同来源的大量的日志数据到一个集中式数据存储系统。   Apache Flume的使用并不仅仅受限于日志数据的聚合。由于数据源是可定制的,Flume可以用来传输大量的事件数据,包括但是不局限于网络流量数据,社交媒体产生的数据,邮件和几乎任何数据源。   Apache Flume 是A

2016-06-13 17:11:27 490

原创 连续子数组的最大和

问题描述:输入一个整型数组,数组里有正数也有负数。数组中一个或者连续的多个整数组成一个字数组。求所有子数组的和的最大值。要求时间复杂度为O(n).

2016-06-03 11:35:52 211

原创 maven工程中报Missing artifact jdk.tools:jdk.tools

maven工程中报Missing artifact jdk.tools:jdk.tools在java的安装目录下运行下面的命令:E:\java\jdk\lib>mvn install:install-file -DgroupId=jdk.tools -DartifactId=jdk.tools -Dpackaging=jar -Dversion=1.7 -Dfile=tools.jar -Dgene

2016-05-24 16:03:26 269

原创 hive加载导出查询

1 创建hive表创建分区表(如果创建表的时候指定了分隔符,插入数据的时候指定另外一个分隔符会报错)> create table db_0309.emp( > empno int, > ename string,

2016-04-12 12:41:10 359

windows64位平台的hadoop2.5.2插件包(hadoop.dll,winutils.exe)

eclipse上运行mapreduce时需要这两个工具

2016-07-19

hive数据加载导出查询

hive数据加载的几种方式、数据的导出、数据简单查询

2016-04-12

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除