- 博客(34)
- 资源 (18)
- 问答 (6)
- 收藏
- 关注
转载 2021-08-17
spark-read write hive and http@TOC添加链接描述``## Licensed to the Apache Software Foundation (ASF) under one or more# contributor license agreements. See the NOTICE file distributed with# this work for additional information regarding copyright ownership
2021-08-18 14:02:58 141
原创 pycharm spark 环境配置
一. 安装 py4j sudo pip install py4j二. Pycharm Run 环境设置 Run -> Edit Configrations -> Enviroment Virables 三. Enviroment Virables 变量 SPARK_HOME, PYTHONPATH, PYTHONUNBUFFERED四. 开发编译目录
2018-01-16 16:21:22 433
原创 mongodb安装
sudo apt-get install mongodbmongo -versionservice mongodb startshow dbs;show collections;use local;db.createCollection('teacher');db.teacher.insert({_id:1, sname:'zhangsan', age:20});
2018-01-09 11:15:12 223
原创 class 文件打入 jar
jar uvf hive-exec-2.3.2.jar org/apache/hadoop/hive/ql/hooks/*
2018-01-02 11:03:16 324
原创 像 shell一样执行 jar
像 shell一样执行 jar 通常执行 java -jar helloworld.jar 可是看到 kettle 执行时候 ./spoon 或者 presto客户端 执行时候 ./presto 执行很间洁,怎么做到的?一.新建 stub.sh#!/bin/shMYSELF=`which "$0" 2>/dev/null`[ $? -gt 0 -a -f "$0" ] && MYS
2017-12-15 15:19:01 334
原创 RabbitMq Ubuntu 安装
服务安装sudo apt-get install rabbitmq-server 状态查看及启动,停止invoke-rc.d rabbitmq-server status invoke-rc.d rabbitmq-server stop/start/status管理界面sudo rabbitmq-plugins enable rabbitmq_management 用户查看sud
2017-11-26 11:18:31 265
原创 Hadoop java 远程操作注意 Configuration
欢迎使用Markdown编辑器写博客本Markdown编辑器使用StackEdit修改而来,用它写博客,将会带来全新的体验哦:Markdown和扩展Markdown简洁的语法代码块高亮图片链接和图片上传LaTex数学公式UML序列图和流程图离线写博客导入导出Markdown文件丰富的快捷键快捷键加粗 Ctrl + B 斜体 Ctrl + I 引用 Ctrl
2017-10-14 12:28:54 849
原创 R-test
#iris dataprint ("this is first project script test")str (iris);#body fat datalibrary("mboost");data("bodyfat", package = "TH.data");str (bodyfat)#save object in filea = 1:10;print (a);sav
2017-06-05 17:01:40 802
原创 pandas-test
import pandas as pdimport numpy as npimport matplotlib.pyplot as pltts = pd.Series(np.random.randn(1000), index=pd.date_range('1/1/2000', periods=1000));ts = ts.cumsum ();ts.plot ();df = pd.DataFra
2017-05-22 10:06:42 472
原创 mysql挿入数据中文乱码问题
在jdbc创建数据连接的时候 书写为: jdbc:mysql://127.0.0.1:3306/databaseName?useUnicode=true&characterEncoding=utf8
2015-08-27 15:27:14 436
转载 Delta extraction for 0FI_GL_04 for every 30 minutes
Note: The below scenario is applicable only for the datasources 0FI_GL_4 (General ledger: Line Items),0FI_AP_4(Accounts payable: Line Items), 0FI_AR_4 (Accounts receivable: Line Items) Sce
2015-07-01 16:56:36 650
转载 SAP BW – Implementing Delta Updates in the Financial Domain
Challenges with delta updates Delta updates in SAP BW are used when we have to update our data targets with recently changed information. These could be newly created documents or old documents
2015-07-01 16:48:21 545
原创 java run at specific time
import java.util.Calendar;import java.util.Date;import java.util.Timer;import java.util.TimerTask;public class ReportGenerator extends TimerTask { public void run() { System.out.p...
2013-11-29 16:25:47 167
jquery multiselect
<script type="text/javascript" src="${path}/commons/js/jquery.multiselect.js" ></script> $("#materialSelect").multiselect({ noneSelectedText: "==请选择==",
2013-08-19 10:28:26 262
原创 java 读取 Excel 文件
/**李树超 * import form by Excel */ @Transactional public void readByExcel(File upload){ try { FileInputStream file = new FileInputStream(upload); //Create Workboo...
2013-08-15 18:02:56 150
java 读取 CSV 文件
@Transactional//(rollbackFor=Exception.class) LISHUCHAO public void readByCSV(File upload, String FORMNO) throws Exception { InputStreamReader freader = new InputStreamReader(new FileInputStrea...
2013-08-15 18:01:12 182
java 连接 Excel 数据库
/** * */package com.user.util;import java.io.UnsupportedEncodingException;import java.sql.Connection;import java.sql.DriverManager;import java.sql.ResultSet;import java.sql.SQLExce...
2013-08-15 17:58:16 351
原创 jqgrid thousand seperator,Col background and colspan setting
// 我从后台动态生成的列,大家注意列的属性设置即可,以下是 action 代码 //----------以上添加了固定列;可变列要动态的从页面接收,或者从数据库中选取 List<String> companyList = materialStockedService.ListCompanies(); for (String company : c...
2013-08-15 14:25:48 164
原创 解决 jqgrid 只冻结标题不冻结列的问题
//部分代码 ColSpan(GroupHeaders); jQuery("#gridTable").jqGrid('setFrozenColumns'); //这句话起决定作用 jQuery("#gridTable").triggerHandler("jqGridAfterGridComplete");...
2013-08-15 12:00:57 1127
原创 get jstree parent nodes path
// catalogname = data1.rslt.obj.attr("title"); var ids = data.inst.get_path('#' + data.rslt.obj.attr('id'),true);// Returns IDs from root to selected nodevar names = data.inst.get_path('#' +...
2013-07-10 10:21:06 330
原创 ftp 中文路径乱码问题
做 ftp 下载,无意间发现中文路径 ftp 不识别,问题解决 InputStream in = ftp.retrieveFileStream(path); pool.freeConnection(ftp);
2013-06-27 16:22:23 1567
原创 回车替换
oracle : replace(replace(GXSCODE,CHR(13),''),CHR(10),'') sql : replace(gxscode , CHAR(13)+CHAR(10),'')
2013-05-09 10:05:59 180
转载 oracle 排序收藏
很痛苦 oracle 排序很慢,网上摘一段排序代码不知好不好使http://blog.csdn.net/xiaohui_liao/article/details/1759981--1:无ORDER BY排序的写法。(效率最高) --(经过测试,此方法成本最低,只嵌套一层,速度最快!即使查询的数据量再大,也几乎不受影响,速度依然!) SELECT * FROM (Sele
2013-04-22 23:37:27 680
原创 springTemplate 收藏的
本文收藏自 http://my.oschina.net/jolphin/blog/61693package com.team.dao;import java.util.List;import java.util.Map;import org.springframework.jdbc.core.JdbcTemplate;import com.team.util...
2013-04-17 09:21:47 134
原创 jsonObject 用法
1. JSONObject jsonObj = new JSONObject().fromObject(bean); GysDogBean bean = new GysDogBean(); try { queryCondition = Util.URLDecoder(queryCondition); bean = RosDao.getGysDogBeanByLo...
2013-04-10 17:32:22 186
原创 BeanUtils.setProperty 应用
BeanUtils.setProperty 简单用法 public void getOverTime() throws Exception{ Session session = getHibernateTemplate().getSessionFactory().getCurrentSession(); Query query = session.createSQLQuer...
2013-04-10 17:23:17 496
原创 getHibernateTemplate().getSessionFactory().getCurrentSession
1. getHibernateTemplate().getSessionFactory().createSQLQuery(insersql).executeUpdate() 直接写 sql 语句进行数据存储。2. getHibernateTemplate().find(hql); 进行查询public List findAll() throws Exception { log.d...
2013-04-10 16:05:11 635
原创 spring many-to-one 关联查询
多的一方 xml 配置<?xml version="1.0" encoding="utf-8"?><!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN""http://hibernate.sourceforge.net/hibernate-mapping-3.0....
2013-04-07 14:40:00 248
原创 spring 事物配置
private UserDAO userDAO; public void setUserDAO(UserDAO userDAO) { this.userDAO = userDAO; } /** * 异常只有抛出事物才有回滚机制 */ public void saveUser(User user) throws Exception{ userDAO...
2013-04-07 10:08:29 106
bootstrap inspinia-admin 2.7.1 angular full version
2017-12-22
bootstrap inspinia-admin 2.7.1 static full version
2017-12-22
bootstrap inspinia-admin 2.7 angular full version
2017-06-01
bootstrap inspinia-admin 2.7 static full version
2017-06-01
jqgrid demo
2013-05-23
java JCO 可以调用 SAP 的 changing 么 ??
2013-09-02
java 读取 Excel (20W条数据)并导入到 数据库解决方案
2013-08-09
java 读取 Excel 数据库中文乱码
2013-08-09
一个事物多个数据库操作关闭的问题,怎样才能不影响连接数混乱
2013-08-08
struts2 文件下载 cpu 占用 100%,求解决方案
2013-05-31
TA创建的收藏夹 TA关注的收藏夹
TA关注的人