自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

花果山

我人在江湖,江湖却没有关于我的传说

  • 博客(284)
  • 收藏
  • 关注

原创 Linux常用命令

ps命令#查看进程运行时间ps -eo pid,etime,args | grep <proces_name>grep命令#search file name in a jar filegrep -R filenamefile.jarfind命令# find files includingabc under the current directo...

2007-06-06 14:31:00 1146

转载 [转]vs2010 编译 log4cxx 0.10.0

原文:http://www.cnblogs.com/walfud/articles/2453738.html1.下载log4cxx 以及 apr 和 apr-util 源码:a)http://www.apache.org/dyn/closer.cgi/logging/log4cxx/0.10.0/apache-log4cxx-0.10.0.zipb)http://archiv...

2019-03-28 08:50:48 574

原创 GDB 调试

启动gdb --args ./application_1 --args *查找文件(gdb) set logging on # GDB output will now be copied into gdb.txt(gdb) info sources(gdb) set logging off(gdb) shell grep bob.cpp gdb.txt(gdb) shel...

2019-01-04 13:18:07 441

原创 在PyCharm中配置Pylint

 pip install pylint 参考https://github.com/leinardi/pylint-pycharm插件的安装方法 pylint.exe在这个目录下C:\Users\username\AppData\Local\Programs\Python\Python37\Scripts

2018-11-22 22:58:14 3507

原创 在redhat 6.x linux上安装新版本的python 2.7

默认的repo中没有新版本的软件,这时候需要用scl1)配置yum reposudo sh -c 'wget -qO- http://people.redhat.com/bkabrda/scl_python27.repo >> /etc/yum.repos.d/scl.repo'2)安装软件yum install python273) 配置shell环境 ...

2018-09-21 10:13:52 1802 1

原创 Java中的Math.abs一定会返回正值吗?

参考jdk文档,可以看到如下注释Note that if the argument is equal to the value of Integer.MIN_VALUE, the most negative representable int value, the result is that same value, which is negative. public class T...

2018-09-14 09:39:58 2583

原创 Container is running beyond physical memory limits.

假设app没有内存泄露且heap usage正常,这个问题一般是由于memory + memoryOverhead超过yarn的监控值后Yarn的保护措施,其解决方法:1)增加spark.yarn.executor.memoryOverhead的值,这个最小默认值是max(384M, executor mem * 0.07); 或增加spark.yarn.driver.memoryOverhead...

2018-07-03 16:37:07 790

原创 HBase Scan查询参数

1)setCacheBlocks对于经常查询值,设置为true,试的Memstore可以缓存该数据。如果是全表扫描,设置为false。2) setCachingScan.setCaching is a misnomer. It should really be called something like Scan.setPrefetch. setCaching actually specifies...

2018-02-12 10:50:26 2005

原创 C++ Makefile学习日志

1) 设置默认make命令行参数设置环境变量export MAKEFLAGS="--debug=b"

2017-12-04 14:18:16 878

转载 Linux SSH 无密码登录

(转自:https://linuxconfig.org/passwordless-ssh)Public key authentication allows you to login to a remote host via the SSH protocol without a password and is more secure than password-based authent

2017-10-09 22:19:57 954

原创 gradle之ssh插件

以前每次在本地编译完后,需要手动复制部署文件到远程机器,但是复制次数多后,也比较懒了,在网上找找有没有自动远程部署的。通过搜索发现可以使用ssh plugin。完整的文档手册可以参考https://gradle-ssh-plugin.github.io/docs/下面是我自己的一个例子:build.gradlebuildscript { repositories

2017-10-03 09:32:38 3580

转载 使用 vim + ctags + cscope + taglist 阅读源码 收藏 bo博 发表于 5年前 阅读 20197 收藏 14 点赞 4 评论 1 最近,准备跟学长一起

使用 vim + ctags + cscope + taglist 阅读源码 收藏bo博 发表于 5年前 阅读 20197 收藏 14 点赞 4 评论 1 最近,准备跟学长一起往 linux kernel 的门里瞧瞧里面的世界,虽然我们知道门就在那,但我们还得找到合适的角度才会看得更舒服,对吧^_^ 。 阅读源码的工具有很多,而且如今的集成开发环境(IDE)也很强大,但对于经常使用vim编辑器的程

2017-09-18 16:41:47 1081

原创 linux强制时钟同步

sudo service ntp stopsudo ntpdate -s time.nist.govsudo service ntp start

2017-08-15 10:25:57 3326

原创 GCC学习日志

1) 今天碰到GCC编译后运行失败,报symbol lookup failed, undefined symbol用命令nm -C 发现U,调整静态库顺序后搞定,其原因未知。

2017-08-11 10:37:03 827

原创 升级Linux内核到指定版本

You can use yum and list all kernel versions that are available (from the enabled repositories at your system) with the following commandyum list --showduplicates kernelIf the kernel you want

2017-06-28 11:37:57 7313

原创 用USB安装Linux注意事项

1)在使用工具将iso复制到usb后,还需要将原始的iso文件复制到usb根目录2)安装后不能启动用恢复盘启动到shell界面chroot /mnt/sysimage将/dev/sdc1 改为 /dev/sda1重启系统chroot /mnt/sysimagegrubroot(hd0,0)setup(hd0)quit

2017-06-28 11:22:27 847

原创 Cent OS上搭建Intellij、SBT、Scala和Spark

1)安装最新版的GitInstalling Required PackagesIn order to install Git, you need to ensure that the required packages have been installed on the system. Please key in the following command to install

2017-04-11 17:25:29 893

原创 支付宝通知notify url处理

1) 获取APPIDnotify_url是异步接口,支付宝会发多次,直到收到你的响应;至于你说的重复问题,你的后台需要根据流水号、订单号等信息判断是否已经接收过请求并成功处理(insert 支付流水,update订单状态等),处理过就直接返回;另外notify_url是有次数限制的,如果系统上线后有严重bug或宕机了,恢复之后可能无法

2017-03-18 16:32:51 21894

原创 Intellij Compile Error:Module 'name' production: java.lang.NullPointerException

You have to define the project compiler output in File -> Project Structure... -> Project -> Project compiler output: with a value

2017-02-13 16:14:57 2564

原创 No appenders could be found for logger

如果碰到下列错误log4j:WARN No appenders could be found for logger (test.Main$).log4j:WARN Please initialize the log4j system properly.log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig

2017-02-12 23:27:13 1646

转载 CentOS安装XRDP实现远程桌面访问

获得 root 权限后,我们来安装 Fedora 的源,方便后面使用 yum 命令来安装所需软件包。安装网络上的 Fedora 源文件: rpm -ivh http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm  安装源的 key: rpm --import /etc/pki/rpm-gpg/RPM

2016-12-13 11:16:45 2557

转载 CentOS Linux下VNC Server远程桌面配置详解

PS:偶以前基本不用Linux的远程图形桌面,前几天有开发的同事配置CentOS的vnc有问题,找我解决,就顺便记录总结一下,这个总结是比较完整的。下面的配置在CentOS5.x和6.x、SUSE企业版亲测验证,其他发行版按理也通用:一、安装相应桌面环境与vnc服务端和客户端:# yum groupinstall "GNOME Desktop Environment"(CentOS

2016-12-13 11:15:13 1573

原创 An simple introduction the components in Cloudera Bundle

Give a simple explanation for the components in the bundle.

2016-12-05 17:55:26 892

转载 How to extract data from XML nodes in Scala

By Alvin Alexander. Last updated: June 3 2016Problem: In a Scala application, you want to extract information from XML you receive, so you can use the data in your application.Solution

2016-12-01 16:41:37 979

原创 Intellij 常用命令

Find a class, add line, remove line, etc

2016-09-30 10:44:16 1465

原创 Gradle学习记录

本文只是作为自己平时学习和工作记录 http://groovy-lang.org/gdk.html1.  如何同步Intellij和Gradle项目,解决加入新的build.gradle后,但是intellij探测的问题。方法:1)打开Gradle Tool Window,View | Tool Windows | Gradle 2)  单击Refresh

2016-09-13 16:08:56 1467

原创 linux测试文件是否存在命令集合

-b FILE FILE exists and is block special -c FILE FILE exists and is character special -d FILE FILE exists and is a directory -e FILE

2016-05-29 22:07:16 2262

转载 scala文件操作--读写,序列化

cala文件读写,序列化?123456789101112131415161718192021222324252627282930

2016-04-19 16:31:06 4645

原创 使用sbt打包依赖库文件

下面的方法只是其中一种,供自己学习记录使用 1) 在project/plugins.sbt或者全局plugin的配置文件加入如下pluginaddSbtPlugin("org.xerial.sbt" % "sbt-pack" % "0.7.9") // for sbt-0.13.x or higheraddSbtPlugin("org.xerial.sbt" % "sbt-pack"...

2016-04-19 15:29:23 4354 1

转载 OpenSSH本地和远程端口转发(tunnel)

绑定本地端口既然SSH可以传送数据,那么我们可以让那些不加密的网络连接,全部改走SSH连接,从而提高安全性。假定我们要让8080端口的数据,都通过SSH传向远程主机,命令就这样写:  $ ssh -D 8080 user@hostSSH会建立一个socket,去监听本地的8080端口。一旦有数据传向那个端口,就自动把它转移到SSH连接上面,发往远程主机。可以

2016-04-14 16:21:04 3258

转载 SBT-Simple Build Tool入门

t的源文件目录结构?123456789101112131415src/  main/    resources/           scala/           java/

2016-04-08 14:24:11 2610

原创 ECLIPSE(JAVA, SCALA)中TAB WIDTH的设置

在eclipse中设置tab width的地方有多处,主要其实就是两种,一种是generic(公用的),一种是specific(特殊的,比如针对scala-ide插件的)。1:公用的部分:window——preference——General——Editor——Text Editor设置页面:Display Tab Width2:Java的部分:window——preference

2016-04-08 10:28:31 1698

转载 解决Cloudera Clock Offset问题

I just saw this after an office move. The servers were offline for a while. This is what I did for our CentOS Linux servers (similar, but not the same, steps would work for Ubuntu/Debian):

2016-01-15 17:36:43 5917 1

原创 Sensu Client: No keepalive sent from client for xxx seconds (>=xxx)

这个错误一般有两个原因:第一个:sensu client服务已停止,重启服务即可解决,一般都可以归类为这个。第二个:客户端和服务器时钟不一致,需要调整两端时钟使之一致。linux调整时钟命令:date -s "2015-12-20 12:15:30"

2015-12-20 12:21:55 1583

转载 hbase 学习梳理

一、HBASE 简介HBase是一个分布式的、面向列的开源数据库,该技术来源于 Fay Chang 所撰写的Google论文"Bigtable:一个结构化数据的分布式存储系统"。就像Bigtable利用了Google文件系统(File System)所提供的分布式数据存储一样,HBase在Hadoop之上提供了类似于Bigtable的能力。HBase是Apache的Ha

2015-11-18 23:21:21 1336

转载 GRAPHITE SERIES #3: WHISPER STORAGE SCHEMAS & AGGREGATIONS

GRAPHITE SERIES #3: WHISPER STORAGE SCHEMAS & AGGREGATIONS /MAY 20, 2014In the Graphite Series blog posts, I'll provide a guide to help through all of the steps involved in setting up

2015-10-24 23:34:45 1245

原创 Graphite数据清除与查看

目前可以直接从 /opt/graphite/storage/whisper/ 目录删除文件即可

2015-10-01 19:02:52 4396

原创 gem install 出现Errno::ECONNRESET: Connection reset by peer - SSL_connect

gem install 出现Errno::ECONNRESET: Connection reset by peer - SSL_connect 在淘宝的网站上发现了相同的描述,才发现是gem source的原因,他们提供了一个gem server。gem sources -lgem sources remove http://rubygems.org/gem sources

2015-09-30 10:01:47 4287

转载 DevOps实战:Graphite监控上手指南

在本文中,我将提供一个帮助读者了解用Graphite套件创建监控系统所涉及的全部工作的指南。主要讨论内容在本文中我们将会谈及如下用于创建Graphite监控系统的主题:Carbon和Whisper简介Whisper存储模式和聚合Graphite Web应用前提条件首先,我们需要能够运行Graphite套件的硬件资源。为了简单起见,我将使用Amaz

2015-09-29 20:25:34 2108

转载 UNNAMED FILE ERROR IN STANDBY AFTER ADDING NEW FILE TO PRIMARY DATABASE – ORA-01111, ORA-01110, ORA-

Oracle, ORA-01111, ORA-01110

2015-09-19 10:57:52 1289

空空如也

空空如也

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

TA关注的人

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