byte[] byteArray = Array.ConvertAll(shortArray, Convert.ToByte);
分类:
编程语言 时间:
2015-01-15 14:11:35
阅读次数:
141
准备工作:1、笔记本4G内存 ,操作系统WIN72、工具VMware Workstation3、虚拟机:CentOS6.4共五台4、搭建好Hadoop集群( 方便Spark可从HDSF上读取文件,进行实验测试)实验环境:Hadoop HA集群:Iphostnamerole192.168.249.13...
分类:
其他好文 时间:
2015-01-15 12:38:41
阅读次数:
237
rsync启动脚本01#!/bin/bash www.ahlinux.com 02#03# rsyncd Thisshellscript takes care of starting and stopping04# standalone rsync.05#06# chkconfig:...
分类:
其他好文 时间:
2015-01-15 12:18:09
阅读次数:
178
ZigZag Conversion输入一串字符,(由上到下再由下向上)Z字形循环排列后,逐行打印输出。例如:输入PAYPALISHIRING 输出PAHNAPLSIIGYIR【我的代码】string convert(string s,int nRows){ string::size_type ...
分类:
其他好文 时间:
2015-01-15 10:44:36
阅读次数:
158
版本声明<?xmlversion="1.0"?>文档编码声明<?xmlversion="1.0"encoding="gb2312"?>独立文档声明<?xmlversion="1.0"encoding="gb2312"standalone="yes"?>#XML声明一定位于文档第一行前面不能有任何字符#几乎所有的XML都是用DTD来限制的,使其标签内容固定。DT..
分类:
其他好文 时间:
2015-01-14 18:15:49
阅读次数:
170
Given an array where elements are sorted in ascending order, convert it to a height balanced BST.
/**
* Definition for binary tree
* struct TreeNode {
* int val;
* TreeNode *left;
* ...
分类:
其他好文 时间:
2015-01-14 15:35:32
阅读次数:
178
Given an array where elements are sorted in ascending order, convert it to a height balanced BST.
/**
* Definition for singly-linked list.
* struct ListNode {
* int val;
* ListNode *nex...
分类:
其他好文 时间:
2015-01-14 15:33:27
阅读次数:
169
我们的Hadoop生产环境有两个版本,其中一个是1.0.3,为了支持日志压缩和split,我们添加了hadoop-1.2中关于Bzip2压缩的feature. 一切运行良好。
为了满足公司对迭代计算的需求(复杂HiveSQL,广告推荐算法,机器学习 etc), 我们构建了自己的Spark集群,最初是Standalone Mode,版本spark-0.9.1,支持Shark。
上线后,问题接踵而...
分类:
编程语言 时间:
2015-01-14 11:10:35
阅读次数:
403
http://www.cnblogs.com/yrup/p/4201329.html解决方法: Select CONVERT(varchar(100), GETDATE(), 25): 2006-05-16 10:57:47.250 修改一下时间格式。
分类:
数据库 时间:
2015-01-14 09:40:31
阅读次数:
144
# -*- coding: utf8 -*-'''__author__ = 'dabay.wang@gmail.com'https://oj.leetcode.com/problems/string-to-integer-atoi/Implement atoi to convert a string...
分类:
其他好文 时间:
2015-01-14 00:36:59
阅读次数:
143