首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >如何使用pentaho厨房连接数据库存储库?

问如何使用pentaho厨房连接数据库存储库?
EN

Stack Overflow用户
提问于 2011-11-24 11:20:15
回答 2查看 4.6K关注 0票数 0

如何使用pentaho厨房在命令行下连接我的中央数据库存储库?

EN

回答 2

Stack Overflow用户

回答已采纳

发布于 2011-11-24 17:35:48

在repositories.xml中设置你的连接,如果你一直在使用spoon,你可能已经有一个这样的连接了。确保.kettle中存在运行厨房的安装的repositories.xml。

然后,只需使用以下命令行选项:

/rep“您的存储库名称”/user“存储库用户”/pass“存储库PSS”

票数 2
EN

Stack Overflow用户

发布于 2014-10-13 21:36:44

下面是一个Windows脚本批处理示例,用于运行Pentaho数据集成水壶作业:

代码语言:javascript
复制
@echo off    
SET LOG_PATHFILE=C:\logs\KITCHEN_name_of_job_%DATETIME%.log    

call Kitchen.bat /rep:"name_repository" /job:"name_of_job" /dir:/foo/sub_foo1 /user:dark /pass:vador /level:Detailed >> %LOG_PATHFILE%`

必须在/users/.kettle/repositories.xml.中定义存储库"name_repository"下面是这个文件的一个例子:

代码语言:javascript
复制
<?xml version="1.0" encoding="UTF-8"?>
<repositories>
  <connection>
    <name>name_repository</name>
    <server>hostname</server>
    <type>MYSQL</type>
    <access>Native</access>
    <database>name_database_repository</database>
    <port>9090</port>
    <username>[name]</username>
    <password>[password]</password>
    <servername/>
    <data_tablespace/>
    <index_tablespace/>
    <attributes>
      <attribute><code>EXTRA_OPTION_MYSQL.defaultFetchSize</code><attribute>500</attribute></attribute>
      <attribute><code>EXTRA_OPTION_MYSQL.useCursorFetch</code><attribute>true</attribute></attribute>
      <attribute><code>FORCE_IDENTIFIERS_TO_LOWERCASE</code><attribute>N</attribute></attribute>
      <attribute><code>FORCE_IDENTIFIERS_TO_UPPERCASE</code><attribute>N</attribute></attribute>
      <attribute><code>IS_CLUSTERED</code><attribute>N</attribute></attribute>
      <attribute><code>PORT_NUMBER</code><attribute>9090</attribute></attribute>
      <attribute><code>QUOTE_ALL_FIELDS</code><attribute>N</attribute></attribute>
      <attribute><code>STREAM_RESULTS</code><attribute>Y</attribute></attribute>
      <attribute><code>SUPPORTS_BOOLEAN_DATA_TYPE</code><attribute>N</attribute></attribute>
      <attribute><code>USE_POOLING</code><attribute>N</attribute></attribute>
    </attributes>
  </connection>
  <repository>
    <id>KettleDatabaseRepository</id>
    <name>name_repository</name>
    <description>the pentaho data integraion kettle repository</description>
    <connection>name_repository</connection>
  </repository>

​

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/8251863

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档