SpringBoot调用Kettle常见错误

一百五十四、Kettle——Linux上安装Kettle9.3(踩坑,亲测有效,附截图) Kettle——Linux上安装Kettle9.3(踩坑,亲测有效,附截图) 阅读详情

场景:通过kettle工具制作 表->文件 导出的转换作业,由SpringBoot程序调用该产生的ktr文件

  • 错误:无法生成导出的文件

Could not find file with URI "..." because it is a relative path, and no base URI was provided.

___  ___       ______         _    _        ______  _             
|  \/  |       | ___ \       | |  (_)       | ___ \| |            
| .  . | _   _ | |_/ /  __ _ | |_  _  ___   | |_/ /| | _   _  ___ 
| |\/| || | | || ___ \ / _` || __|| |/ __|  |  __/ | || | | |/ __|
| |  | || |_| || |_/ /| (_| || |_ | |\__ \  | |    | || |_| |\__ \
\_|  |_/ \__, |\____/  \__,_| \__||_||___/  \_|    |_| \__,_||___/
          __/ |                                                   
         |___/                                              3.0-RELEASE

2020-05-06 14:25:36.768 [main] INFO  com.alibaba.druid.pool.DruidDataSource - {dataSource-1} inited
Wed May 06 14:25:36 CST 2020 WARN: Establishing SSL connection without server's identity verification is not recommended. According to MySQL 5.5.45+, 5.6.26+ and 5.7.6+ requirements SSL connection must be established by default if explicit option isn't set. For compliance with existing applications not using SSL the verifyServerCertificate property is set to 'false'. You need either to explicitly disable SSL by setting useSSL=false, or set useSSL=true and provide truststore for server certificate verification.
2020-05-06 14:25:38.555 [main] INFO  o.s.scheduling.concurrent.ThreadPoolTaskExecutor - Initializing ExecutorService 'applicationTaskExecutor'
2020-05-06 14:25:40.435 [main] INFO  o.s.b.actuate.endpoint.web.EndpointLinksResolver - Exposing 2 endpoint(s) beneath base path '/actuator'
2020-05-06 14:25:40.531 [main] INFO  com.yqzl.extract.utils.kettle.TestKettleUtil - Started TestKettleUtil in 9.631 seconds (JVM running for 11.209)
2020/05/06 14:25:41 - db2file - 为了转换解除补丁开始  [db2file]
2020-05-06 14:25:41.068 [main] INFO  org.pentaho.di.trans.Trans - [src/main/resources/kjb/db2file1.ktr]  为了转换解除补丁开始  [db2file]
Wed May 06 14:25:41 CST 2020 WARN: Establishing SSL connection without server's identity verification is not recommended. According to MySQL 5.5.45+, 5.6.26+ and 5.7.6+ requirements SSL connection must be established by default if explicit option isn't set. For compliance with existing applications not using SSL the verifyServerCertificate property is set to 'false'. You need either to explicitly disable SSL by setting useSSL=false, or set useSSL=true and provide truststore for server certificate verification.
2020-05-06 14:25:41.135 [Thread-9] INFO  o.s.scheduling.concurrent.ThreadPoolTaskExecutor - Shutting down ExecutorService 'applicationTaskExecutor'
2020-05-06 14:25:41.153 [Thread-9] INFO  com.alibaba.druid.pool.DruidDataSource - {dataSource-1} closed
org.pentaho.di.core.exception.KettleFileException: 

Unable to get VFS File object for filename 'D:/data/kettle/2020-05-06/abc_20200506.txt' : Could not find file with URI "D:\data\kettle\2020-05-06\abc_20200506.txt" because it is a relative path, and no base URI was provided.
Could not find file with URI "D:\data\kettle\2020-05-06\abc_20200506.txt" because it is a relative path, and no base URI was provided.

Could not find file with URI "D:\data\kettle\2020-05-06\abc_20200506.txt" because it is a relative path, and no base URI was provided.

	at org.pentaho.di.core.vfs.KettleVFS.getFileObject(KettleVFS.java:171)
	at org.pentaho.di.core.vfs.KettleVFS.getFileObject(KettleVFS.java:117)
	at org.pentaho.di.trans.steps.textfileoutput.TextFileOutput.getFileObject(TextFileOutput.java:1036)
	at org.pentaho.di.trans.steps.textfileoutput.TextFileOutput.initFileStreamWriter(TextFileOutput.java:156)
	at org.pentaho.di.trans.steps.textfileoutput.TextFileOutput.writeRowToFile(TextFileOutput.java:355)
	at org.pentaho.di.trans.steps.textfileoutput.TextFileOutput.writeRowTo(TextFileOutput.java:468)
	at org.pentaho.di.trans.steps.textfileoutput.TextFileOutput.processRow(TextFileOutput.java:461)
	at org.pentaho.di.trans.step.RunThread.run(RunThread.java:62)
	at java.lang.Thread.run(Thread.java:748)
Caused by: org.apache.commons.vfs2.FileSystemException: Could not find file with URI "D:\data\kettle\2020-05-06\abc_20200506.txt" because it is a relative path, and no base URI was provided.
	at org.apache.commons.vfs2.impl.DefaultFileSystemManager.resolveFile(DefaultFileSystemManager.java:731)
	at org.pentaho.di.core.vfs.ConcurrentFileSystemManager.resolveFile(ConcurrentFileSystemManager.java:91)
	at org.apache.commons.vfs2.impl.DefaultFileSystemManager.resolveFile(DefaultFileSystemManager.java:677)
	at org.apache.commons.vfs2.impl.DefaultFileSystemManager.resolveFile(DefaultFileSystemManager.java:632)
	at org.pentaho.di.core.vfs.KettleVFS.myGetFileObject(KettleVFS.java:177)
	at org.pentaho.di.core.vfs.KettleVFS.getFileObject(KettleVFS.java:167)
	... 8 more
2020/05/06 14:25:41 - 文本文件输出.0 - ERROR (version 9.0.0.0-423, build 9.0.0.0-423 from 2020-01-31 04.53.04 by buildguy) : Unexpected error
2020-05-06 14:25:41.156 [db2file - 文本文件输出] ERROR org.pentaho.di.trans.Trans - [src/main/resources/kjb/db2file1.ktr]  Unexpected error
2020-05-06 14:25:41.157 [db2file - 文本文件输出] ERROR org.pentaho.di.trans.Trans - [src/main/resources/kjb/db2file1.ktr]  org.pentaho.di.core.exception.KettleFileException: 

Unable to get VFS File object for filename 'D:/data/kettle/2020-05-06/abc_20200506.txt' : Could not find file with URI "D:\data\kettle\2020-05-06\abc_20200506.txt" because it is a relative path, and no base URI was provided.
Could not find file with URI "D:\data\kettle\2020-05-06\abc_20200506.txt" because it is a relative path, and no base URI was provided.

Could not find file with URI "D:\data\kettle\2020-05-06\abc_20200506.txt" because it is a relative path, and no base URI was provided.

	at org.pentaho.di.core.vfs.KettleVFS.getFileObject(KettleVFS.java:171)
	at org.pentaho.di.core.vfs.KettleVFS.getFileObject(KettleVFS.java:117)
	at org.pentaho.di.trans.steps.textfileoutput.TextFileOutput.getFileObject(TextFileOutput.java:1036)
	at org.pentaho.di.trans.steps.textfileoutput.TextFileOutput.initFileStreamWriter(TextFileOutput.java:156)
	at org.pentaho.di.trans.steps.textfileoutput.TextFileOutput.writeRowToFile(TextFileOutput.java:355)
	at org.pentaho.di.trans.steps.textfileoutput.TextFileOutput.writeRowTo(TextFileOutput.java:468)
	at org.pentaho.di.trans.steps.textfileoutput.TextFileOutput.processRow(TextFileOutput.java:461)
	at org.pentaho.di.trans.step.RunThread.run(RunThread.java:62)
	at java.lang.Thread.run(Thread.java:748)
Caused by: org.apache.commons.vfs2.FileSystemException: Could not find file with URI "D:\data\kettle\2020-05-06\abc_20200506.txt" because it is a relative path, and no base URI was provided.
	at org.apache.commons.vfs2.impl.DefaultFileSystemManager.resolveFile(DefaultFileSystemManager.java:731)
	at org.pentaho.di.core.vfs.ConcurrentFileSystemManager.resolveFile(ConcurrentFileSystemManager.java:91)
	at org.apache.commons.vfs2.impl.DefaultFileSystemManager.resolveFile(DefaultFileSystemManager.java:677)
	at org.apache.commons.vfs2.impl.DefaultFileSystemManager.resolveFile(DefaultFileSystemManager.java:632)
	at org.pentaho.di.core.vfs.KettleVFS.myGetFileObject(KettleVFS.java:177)
	at org.pentaho.di.core.vfs.KettleVFS.getFileObject(KettleVFS.java:167)
	... 8 more

2020/05/06 14:25:41 - 文本文件输出.0 - ERROR (version 9.0.0.0-423, build 9.0.0.0-423 from 2020-01-31 04.53.04 by buildguy) : org.pentaho.di.core.exception.KettleFileException: 
2020/05/06 14:25:41 - 文本文件输出.0 - 
2020/05/06 14:25:41 - 文本文件输出.0 - Unable to get VFS File object for filename 'D:/data/kettle/2020-05-06/abc_20200506.txt' : Could not find file with URI "D:\data\kettle\2020-05-06\abc_20200506.txt" because it is a relative path, and no base URI was provided.
2020/05/06 14:25:41 - 文本文件输出.0 - Could not find file with URI "D:\data\kettle\2020-05-06\abc_20200506.txt" because it is a relative path, and no base URI was provided.
2020/05/06 14:25:41 - 文本文件输出.0 - 
2020/05/06 14:25:41 - 文本文件输出.0 - Could not find file with URI "D:\data\kettle\2020-05-06\abc_20200506.txt" because it is a relative path, and no base URI was provided.
2020/05/06 14:25:41 - 文本文件输出.0 - 
2020/05/06 14:25:41 - 文本文件输出.0 - 	at org.pentaho.di.core.vfs.KettleVFS.getFileObject(KettleVFS.java:171)
2020/05/06 14:25:41 - 文本文件输出.0 - 	at org.pentaho.di.core.vfs.KettleVFS.getFileObject(KettleVFS.java:117)
2020/05/06 14:25:41 - 文本文件输出.0 - 	at org.pentaho.di.trans.steps.textfileoutput.TextFileOutput.getFileObject(TextFileOutput.java:1036)
2020/05/06 14:25:41 - 文本文件输出.0 - 	at org.pentaho.di.trans.steps.textfileoutput.TextFileOutput.initFileStreamWriter(TextFileOutput.java:156)
2020/05/06 14:25:41 - 文本文件输出.0 - 	at org.pentaho.di.trans.steps.textfileoutput.TextFileOutput.writeRowToFile(TextFileOutput.java:355)
2020/05/06 14:25:41 - 文本文件输出.0 - 	at org.pentaho.di.trans.steps.textfileoutput.TextFileOutput.writeRowTo(TextFileOutput.java:468)
2020/05/06 14:25:41 - 文本文件输出.0 - 	at org.pentaho.di.trans.steps.textfileoutput.TextFileOutput.processRow(TextFileOutput.java:461)
2020/05/06 14:25:41 - 文本文件输出.0 - 	at org.pentaho.di.trans.step.RunThread.run(RunThread.java:62)
2020/05/06 14:25:41 - 文本文件输出.0 - 	at java.lang.Thread.run(Thread.java:748)
2020/05/06 14:25:41 - 文本文件输出.0 - Caused by: org.apache.commons.vfs2.FileSystemException: Could not find file with URI "D:\data\kettle\2020-05-06\abc_20200506.txt" because it is a relative path, and no base URI was provided.
2020/05/06 14:25:41 - 文本文件输出.0 - 	at org.apache.commons.vfs2.impl.DefaultFileSystemManager.resolveFile(DefaultFileSystemManager.java:731)
2020/05/06 14:25:41 - 文本文件输出.0 - 	at org.pentaho.di.core.vfs.ConcurrentFileSystemManager.resolveFile(ConcurrentFileSystemManager.java:91)
2020/05/06 14:25:41 - 文本文件输出.0 - 	at org.apache.commons.vfs2.impl.DefaultFileSystemManager.resolveFile(DefaultFileSystemManager.java:677)
2020/05/06 14:25:41 - 文本文件输出.0 - 	at org.apache.commons.vfs2.impl.DefaultFileSystemManager.resolveFile(DefaultFileSystemManager.java:632)
2020/05/06 14:25:41 - 文本文件输出.0 - 	at org.pentaho.di.core.vfs.KettleVFS.myGetFileObject(KettleVFS.java:177)
2020/05/06 14:25:41 - 文本文件输出.0 - 	at org.pentaho.di.core.vfs.KettleVFS.getFileObject(KettleVFS.java:167)
2020/05/06 14:25:41 - 文本文件输出.0 - 	... 8 more
2020/05/06 14:25:41 - 文本文件输出.0 - 完成处理 (I=0, O=0, R=1, W=0, U=0, E=1)
2020-05-06 14:25:41.169 [db2file - 文本文件输出] INFO  org.pentaho.di.trans.Trans - [src/main/resources/kjb/db2file1.ktr]  完成处理 (I=0, O=0, R=1, W=0, U=0, E=1)
2020/05/06 14:25:41 - 表输入.0 - Finished reading query, closing connection.
2020-05-06 14:25:41.171 [db2file - 表输入] INFO  org.pentaho.di.trans.Trans - [src/main/resources/kjb/db2file1.ktr]  Finished reading query, closing connection.
2020/05/06 14:25:41 - db2file - 转换被检测 
2020-05-06 14:25:41.174 [db2file - 文本文件输出] WARN  org.pentaho.di.trans.Trans - [src/main/resources/kjb/db2file1.ktr]  转换被检测 
2020/05/06 14:25:41 - db2file - 转换正在杀死其他步骤!
2020-05-06 14:25:41.175 [db2file - 文本文件输出] WARN  org.pentaho.di.trans.Trans - [src/main/resources/kjb/db2file1.ktr]  转换正在杀死其他步骤!
Disconnected from the target VM, address: '127.0.0.1:54021', transport: 'socket'

Process finished with exit code 0

原因:勾选了这个导致

解决:将其转为不勾选状态

体现在ktr文件中为:修改为 N 即可!

 

 

 

 

 

 

 

Kettle之定时运行Job Kettle做定时任务有两种方式。 第一种是kettle自带的Start控件,缺点是kettle程序必须始终运行,浪费内存。 第二种是使用系统的定时功能。使用Kitchen、Pan命令编写bat、sh脚本,然后使用windows任务计划或者linux的crotab实现定时执行执行脚本。 (一)Start控件执行定时任务 我们需要建立一个job,来让转换定时执行。 操作步骤 1、运行软件,进入主界面。点击左上角的 文件 → 新建 → 作业(J)新建一个作业(job),并... 阅读详情

相关推荐

SpringBoot与Kettle深度整合:构建灵活可配置的ETL数据交换系统

本文详细介绍了如何将SpringBoot与Kettle深度整合,构建灵活可配置的ETL数据交换系统。通过SpringBoot的轻量级特性和Kettle强大的ETL功能,实现数据集成的高效部署与动态配置,适用于企业数字化转型中的各类数据同步需求。文章包含环境准备、依赖配置、核心转换实现及生产环境优化建议,帮助开发者快速掌握这一技术组合。

weixin_29284657的博客 381

KETTLE_内存溢出错误

原创作品,出自 “深蓝的blog” 博客,欢迎转载,转载时请务必注明以下出处,否则追究版权法律责任。 深蓝的blog:   kettle内存溢出错误解决 环境: 源端数据库:oracle 10G R2 目标端数据库:oracle 11G R2 kettle版本:5.0.1-stable 报错: 抽取大数据量表时,报错,日志信息如下: 2015/01/05 11:27:42 -

深蓝@黄炎龙 3万+

告别手动:用Kettle+SpringBoot给泛微OA E9打造一个自动邮件推送服务

本文详细介绍了如何利用Kettle和SpringBoot为泛微OA E9构建自动化邮件推送服务,通过WebService接口实现高效集成。系统采用分层设计,结合文件监控、业务逻辑处理和OA集成,显著提升企业邮件处理效率,特别适合财务报告等定期发送场景。

weixin_42528191的博客 435

Kettle学习(3):JAVA调用Kettle脚本使用JNDI配置文件

工作上遇到了一个前同事写的bug,关于Kettle这个文件的调用的问题,之前的同事可能也是着急实现这个功能,大体就是迁移核心的数据到ncpi系统的这一过程写的ktr的转换脚本是手动配置数据库,而且好几个ktr脚本这么配置起来就比较麻烦,再加上,如果换成生产环境的情况,就要把数据库的配置在重新配置一遍,但是我在本地配置了JNDI的连接方式,可是要怎么使用这个JNDI的配置就是一个问题了,毕竟服务器里...

lovePaul77的博客 4136

KETTLE:通过代码运行本地ktr文件

这几天小白得到了一个任务,需要写一个简单的程序,执行本地的ktr文件,ktr文件中会更新数据库数据,且数据库连接信息需从执行这段程序的机器的资源库中获取,再次记录下这段从程序。 目录 工程 代码 依赖 ktr文件 工程 首先,新建一个springboot工程,方便将依赖包打包进jar文件。 代码 然后main函数代码如下代码所示,其中有的变量我重新命名了下。 package com.xxxx.xxxxa; import xxxxxx; @SpringBootApplication

Java小白的博客 2622

Elasticsearch常见错误

Elasticsearch常见错误

私信可回答各种问题~ 4776

spring boot web项目 maven 调用kettle

kettle的maven依赖没有找到,通过自己向maven库中添加,解决了springboot web项目调用kettle的问题 解决方法如下: 1.向maven中添加jar  需要添加的jar包包括:kettle-core.jar, kettle-engine.jar,metastore.jar,vfs2.jar, scannotation.jar 这些包在kettle的解压路径 pdi...

li_wei_ying0809的专栏 5702

2026年7月19日 从可插拔到共封装:技术路线研究报告

AI 算力的爆发正在重写数据中心光互连的技术路线。本报告对当前并存的四代光互连架构——

weixin_51184047的博客 624

Kettle问题

下载了pdi-ce-9.2.0.0-290,因为本机是jdk11启动不了,需要指定用jdk1.8启动 编辑Spoon.bat文件,加入 set JAVA_HOME=C:\Program Files\Java\jdk1.8.0_291 set PENTAHO_JAVA_HOME=%JAVA_HOME%

csj50的专栏 7937

DataWorks PyODPS第三方包全攻略:从打包到加载的完整流程

本文详细介绍了在DataWorks的PyODPS节点中使用第三方Python包的完整流程,包括环境限制、打包工具pyodps-pack的使用、资源上传与加载实战,以及特殊场景处理技巧。通过本文,开发者可以掌握在MaxCompute受限环境中灵活使用自定义依赖的方法,提升数据处理效率。

dd012的博客 995

瑞萨单片机-硬件I2C从设备

瑞萨单片机上实现I2C从机,根据主机发来的数据,从机返回或者保存数据2、R5F1115AxFL最多支持3个从设备地址(即可以作为三个从设备)3、从接收模式:直接将数据保存到RAM中,接收完再处理4、从发送模式:按照I2C读取传感器数据经验,主机读取从设备时,从设备需要立刻返回数据的,但是程序要如何实现一收到指令就返回特定的数据?(时钟拉伸)这里先跳过,我们先实现返回固定的数据。

qq_27893147的博客 3221

springBoot集成kettle,用到json,初始化插件失败【kettle-json-plugin-core-9.3.0.0-428.jar】

// 初始化 KETTLE_JSON_PLUGIN 插件在kettle目录下/plugins的路径 StepPluginType.getInstance().getPluginFolders().add(new PluginFolder(KETTLE_JSON_PLUGIN, false, true)); KettleEnvironment.init(); ---报错2022/07/08 16:12:14 - General - ERROR (version 9.3.0.0-428, build 9.3.

weixin_44396867的博客 5015

大模型训练方法全面解析:SFT、RFT、TRPO、DPO、PPO、GRPO、RLH、RLHF技术深度剖析

大模型训练方法全面解析 本文系统介绍了当前主流的大模型训练和对齐技术,包括监督微调(SFT)、拒绝采样微调(RFT)、信任域策略优化(TRPO)、直接偏好优化(DPO)、近端策略优化(PPO)等。这些方法各有特点:SFT简单高效但数据依赖性强;RFT通过质量筛选提升输出质量;TRPO训练稳定但计算复杂;PPO是RLHF核心算法,平衡探索与利用。文章详细分析了各方法的实现原理、优势劣势及适用场景,为开发者选择合适的大模型训练策略提供参考。

2811

spring boot整合kettle调用数据库资源库中的job

前言 上篇文章记录了spring boot如何调用文件资源库下的job,这篇文章会记录如何调用数据库资源库的job 1.导入jar包 在调用文件路径下的job需要导入如下jar包 而调用数据库资源库的job需要多导入2个jar包否则会报http错误,jar包如下 2.运行代码 代码如下: @Test public void excuteDBTrans() thro...

weixin_43870176的博客 3767

机器翻译:一文掌握离线翻译库 Argos Translate 的详细使用

Argos Translate是一个开源的离线翻译库,支持多语言互译。它通过独立的翻译包(.argosmodel文件)实现翻译功能,每个包对应特定语言对的翻译任务。安装简单,只需pip安装argostranslate库,并通过命令行或Python API管理翻译包。支持批量处理和长期运行优化性能。对于不支持的语种,可采用桥接翻译或自行训练模型。该库提供CLI工具和Python API,适合集成到各种应用中,还可用于批量文件翻译。主要局限包括缺乏上下文理解、专业领域翻译不精准等。

数据知道的博客 3528

基于Simulink的压缩空气储能(Compressed Air Energy Storage, CAES)

压缩空气储能(CAES)是一种将电能转化为压缩空气存储在高压容器中,然后在需要时释放空气驱动涡轮机发电的技术。它具有大规模、长寿命和环境友好的特点,在电力系统中用于削峰填谷、频率调节和备用电源等应用。本项目将详细介绍如何在MATLAB/Simulink中搭建一个完整的基于压缩空气储能的系统,并提供具体的代码实现和设计步骤。如果你需要实现更复杂的控制逻辑,可以使用MATLAB Function模块。以下是一个简单的例子,展示了如何在该模块中实现一个条件逻辑:Matlab深色版本Kp = 1;

MHD0815的博客 1282

Springboot整合ETL引擎Kettle的使用

kettle是一个开源ETL工具。kettle提供了基于java的图形化界面,使用很方便。

qq_22824481的博客 5944

详解YOLOv5网络结构/数据集获取/环境搭建/训练/推理/验证/导出/部署

本文给大家带来的教程是利用YOLOv5训练自己的数据集,以及有关YOLOv5的网络结构讲解/数据集获取/环境搭建/训练/推理/验证/导出/部署相关的教程,同时通过示例的方式让大家来了解具体的操作流程,过程中还分享给大家一些好用的资源,我还对其中的参数进行了详细的讲解,通过本文大家可以成功训练自己的数据集,在开始之前给大家推荐一下我的YOLOv5专栏,本专栏包含上百种YOLOv5的改进机制以及如何撰写论文的教程,手把手教大家如何改进YOLOv5非常适合科研小白。

Snu77的博客 4906

KETTL从安装-」简单使用-」java调用总结

KETTL从安装->简单使用->java调用介绍安装软件开始使用 分为Transition、JOBTransitionJOB创建如何设置局部变量、全局变量及服务器全局变量位置设置局部标量方法全局变量设置KETTLE文件linux服务器运行全局变量位置介绍 Java如何调用KETTLE文件JAVA调取kettle 干货 直接可用KettleUtil 介绍 本文主要介绍KETTLE 安装简单使用 SpringBoot如何调取kettle文件进行当量ETL 安装软件 解压即用 永久分享 链接:http

wang_ying_zhen的博客 993

老版QQ原生表情gif动态

这是老版的QQ表情,不过全是动态的的,Windows照片查看器是不会动的,可以右击用浏览器打开查看,再说一遍是老版的,只是分享给宁愿用老版也要动态的人。

温度PID控制PLC程序

温度PID稳定控制程序,适用于欧姆龙PLC,对其他PLC也具有很大参考价值

java web项目整合kettle进行数据自动导入

文章目录分析:项目github地址:[kettle-springboot](https://github.com/haochenchn/kettle-springboot)实现:1、spring boot整合kettle2、spring boot整合mybatis3、pagehelper插件 最近有一个需求,就是要将数据文件打包上传到服务器,上传的同时分析数据文件并将数据清洗入库。 分析: ...

等等等等等再等 7184

深度学习工具包 DeepLearningToolbox

深度学习工具包Deprecation notice.-----This toolbox is outdated and no longer maintained.There are much better tools available for deep learning than this toolbox, e.g. [Theano](http://deeplearning.net/software/theano/), [torch](http://torch.ch/) or [tensorflow](http://www.tensorflow.org/)I would suggest you use one of the tools mentioned above rather than use this toolbox.Best, Rasmus.DeepLearnToolbox================A Matlab toolbox for Deep Learning.Deep Learning is a new subfield of machine learning that focuses on learning deep hierarchical models of data.It is inspired by the human brain's apparent deep (layered, hierarchical) architecture.A good overview of the theory of Deep Learning theory is[Learning Deep Architectures for AI](http://www.iro.umontreal.ca/~bengioy/papers/ftml_book.pdf)For a more informal introduction, see the following videos by Geoffrey Hinton and Andrew Ng.* [The Next Generation of Neural Networks](http://www.youtube.com/watch?v=AyzOUbkUf3M) (Hinton, 2007)* [Recent Developments in Deep Learning](http://www.youtube.com/watch?v=VdIURAu1-aU) (Hinton, 2010)* [Unsupervised Feature Learning and Deep Learning](http://www.youtube.com/watch?v=ZmNOAtZIgIk) (Ng, 2011)If you use this toolbox in your research please cite [Prediction as a candidate for learning deep hierarchical models of data](http://www2.imm.dtu.dk/pubdb/views/publication_details.php?id=6284)```@MASTERSTHESIS\{IMM2012-06284, author = "R. B. Palm", title = "Prediction as a candidate for learning deep hierarchical models of data", year = "2012",}```Contact: rasmusbergpalm at gmail dot comDirectories included in the toolbox-----------------------------------`NN/` - A library for Feedforward Backpropagation Neural Networks`CNN/` - A library for Convolutional Neural Networks`DBN/` - A library for Deep Belief Networks`SAE/` - A library for Stacked Auto-Encoders`CAE/` - A library for Convolutional Auto-Encoders`util/` - Utility functions used by the libraries`data/` - Data used by the examples`tests/` - unit tests to verify toolbox is workingFor references on each library check REFS.mdSetup-----1. Download.2. addpath(genpath('DeepLearnToolbox'));Example: Deep Belief Network---------------------```matlabfunction test_example_DBNload mnist_uint8;train_x = double(train_x) / 255;test_x = double(test_x) / 255;train_y = double(train_y);test_y = double(test_y);%% ex1 train a 100 hidden unit RBM and visualize its weightsrand('state',0)dbn.sizes = [100];opts.numepochs = 1;opts.batchsize = 100;opts.momentum = 0;opts.alpha = 1;dbn = dbnsetup(dbn, train_x, opts);dbn = dbntrain(dbn, train_x, opts);figure; visualize(dbn.rbm{1}.W'); % Visualize the RBM weights%% ex2 train a 100-100 hidden unit DBN and use its weights to initialize a NNrand('state',0)%train dbndbn.sizes = [100 100];opts.numepochs = 1;opts.batchsize = 100;opts.momentum = 0;opts.alpha = 1;dbn = dbnsetup(dbn, train_x, opts);dbn = dbntrain(dbn, train_x, opts);%unfold dbn to nnnn = dbnunfoldtonn(dbn, 10);nn.activation_function = 'sigm';%train nnopts.numepochs = 1;opts.batchsize = 100;nn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.10, 'Too big error');```Example: Stacked Auto-Encoders---------------------```matlabfunction test_example_SAEload mnist_uint8;train_x = double(train_x)/255;test_x = double(test_x)/255;train_y = double(train_y);test_y = double(test_y);%% ex1 train a 100 hidden unit SDAE and use it to initialize a FFNN% Setup and train a stacked denoising autoencoder (SDAE)rand('state',0)sae = saesetup([784 100]);sae.ae{1}.activation_function = 'sigm';sae.ae{1}.learningRate = 1;sae.ae{1}.inputZeroMaskedFraction = 0.5;opts.numepochs = 1;opts.batchsize = 100;sae = saetrain(sae, train_x, opts);visualize(sae.ae{1}.W{1}(:,2:end)')% Use the SDAE to initialize a FFNNnn = nnsetup([784 100 10]);nn.activation_function = 'sigm';nn.learningRate = 1;nn.W{1} = sae.ae{1}.W{1};% Train the FFNNopts.numepochs = 1;opts.batchsize = 100;nn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.16, 'Too big error');```Example: Convolutional Neural Nets---------------------```matlabfunction test_example_CNNload mnist_uint8;train_x = double(reshape(train_x',28,28,60000))/255;test_x = double(reshape(test_x',28,28,10000))/255;train_y = double(train_y');test_y = double(test_y');%% ex1 Train a 6c-2s-12c-2s Convolutional neural network %will run 1 epoch in about 200 second and get around 11% error. %With 100 epochs you'll get around 1.2% errorrand('state',0)cnn.layers = { struct('type', 'i') %input layer struct('type', 'c', 'outputmaps', 6, 'kernelsize', 5) %convolution layer struct('type', 's', 'scale', 2) %sub sampling layer struct('type', 'c', 'outputmaps', 12, 'kernelsize', 5) %convolution layer struct('type', 's', 'scale', 2) %subsampling layer};cnn = cnnsetup(cnn, train_x, train_y);opts.alpha = 1;opts.batchsize = 50;opts.numepochs = 1;cnn = cnntrain(cnn, train_x, train_y, opts);[er, bad] = cnntest(cnn, test_x, test_y);%plot mean squared errorfigure; plot(cnn.rL);assert(er<0.12, 'Too big error');```Example: Neural Networks---------------------```matlabfunction test_example_NNload mnist_uint8;train_x = double(train_x) / 255;test_x = double(test_x) / 255;train_y = double(train_y);test_y = double(test_y);% normalize[train_x, mu, sigma] = zscore(train_x);test_x = normalize(test_x, mu, sigma);%% ex1 vanilla neural netrand('state',0)nn = nnsetup([784 100 10]);opts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samples[nn, L] = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.08, 'Too big error');%% ex2 neural net with L2 weight decayrand('state',0)nn = nnsetup([784 100 10]);nn.weightPenaltyL2 = 1e-4; % L2 weight decayopts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex3 neural net with dropoutrand('state',0)nn = nnsetup([784 100 10]);nn.dropoutFraction = 0.5; % Dropout fraction opts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex4 neural net with sigmoid activation functionrand('state',0)nn = nnsetup([784 100 10]);nn.activation_function = 'sigm'; % Sigmoid activation functionnn.learningRate = 1; % Sigm require a lower learning rateopts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex5 plotting functionalityrand('state',0)nn = nnsetup([784 20 10]);opts.numepochs = 5; % Number of full sweeps through datann.output = 'softmax'; % use softmax outputopts.batchsize = 1000; % Take a mean gradient step over this many samplesopts.plot = 1; % enable plottingnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex6 neural net with sigmoid activation and plotting of validation and training error% split training data into training and validation datavx = train_x(1:10000,:);tx = train_x(10001:end,:);vy = train_y(1:10000,:);ty = train_y(10001:end,:);rand('state',0)nn = nnsetup([784 20 10]); nn.output = 'softmax'; % use softmax outputopts.numepochs = 5; % Number of full sweeps through dataopts.batchsize = 1000; % Take a mean gradient step over this many samplesopts.plot = 1; % enable plottingnn = nntrain(nn, tx, ty, opts, vx, vy); % nntrain takes validation set as last two arguments (optionally)[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');```[![Bitdeli Badge](https://d2weczhvl823v0.cloudfront.net/rasmusbergpalm/deeplearntoolbox/trend.png)](https://bitdeli.com/free "Bitdeli Badge")

kettle从入门到精通 第八十七课 ETL之kettle kettle文件上传

1、kettle本身文件上传功能不是很友好,甚至是不能直接使用,需要调整文件上传接口才可以正常接收到文件,本次讲解内容主要是通过自定义插件解决这个问题。2、通过springboot 编写简单demo,模拟文件上传,接口支持三个参数unitCode、password、和文件dataFile。{{body}}:表示从前面【生成记录】步骤获取参数body,同时也支持采用变量的方式,如${BODY}files:表示需要上传的文件,通过{{file}}从前面【生成记录步骤进行获取】index.html源文件。

zhangjin1222的博客 930

Outlook Express 6 (OE6) for Win7/Win8/Win10

英文版 Outlook Express6.0, 兼容Win7/Win10/WinXP,解压就可用。

SpringBoot集成Kettle的实战指南:从环境初始化到生产避坑

Kettle(Pentaho Data Integration)作为成熟开源ETL工具,其核心引擎是纯Java实现的轻量级运行时,天然支持嵌入式集成。理解其基于ClassLoader隔离、插件注册机制和静态环境初始化(KettleEnvironment.init)的运行原理,是实现稳定集成的前提。技术价值在于将Kettle转换(Transformation)与作业(Job)纳入SpringBoot统一生命周期管理,获得事务控制、Actuator监控、Security权限和自动配置等企业级能力。典型应用场景包

weixin_32247165的博客 246

Springboot管理Kettle任务,装载自定义插件

在初始化kettle环境的代码中加入这行代码: StepPluginType.getInstance().getPluginFolders().add(new PluginFolder("F:\\pdi-ce-7.1.0.0-12\\data-integration\\plugins\\kettle-solr-plugin", true, true)); 该目录就是需要引用的插件地址。 stackoverflow里有完整的解决方法, 参考 Java调用Kettle时,报Can't run ...

yanzi920403的博客 853

springboot集成kettel 读取excel报错,错误初始化步骤[Excel输出]

ERROR (version 9.0.0.0-423, build 9.0.0.0-423 from 2020-01-31 04.53.04 by buildguy) : 错误初始化步骤[Excel输出] 解决方案 :添加kettel中的excel依赖 <dependency> <groupId>kettle.jxl</groupId> <artifactId>jxl</artifactId> <vers

云天龙,我命由我不由天! 3462

springboot 整合 kettle 坑点

需要引入的jar:缺其中一个就会报一堆奇奇怪怪的错 1.注意放到lib的位置,后面会用上。 2.jar从kettle客户端里扒拉来 3.我这边是用kettle从oracle转到mySQL做增量同步,所以要ojdbc8,mysql5.1.49,用5.1.49注意mysql数据库mysql配置要用driver-class-name: com.mysql.jdbc.Driver pom的写法:注意<build>里面的写法,这样后面打包后的外部jar包才会跟着过去,不然就会部署后运行报.

animalcoder 1662
上一篇: SpringBoot中通过feign方式调用外部系统接口时出现错误
下一篇: 技术工具类:Axure工具生成的html页面在Chrome浏览器中无法打开
遇见小豆
博客等级 码龄8年 31粉丝 84原创
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

个

红包个数最小为10个

元

红包金额最低5元

当前余额3.43元 前往充值 >
需支付:10.00元
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付元
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值