如何使用pentaho kitchen连接数据库存储库?

发布于 2024-12-18 04:13:13 字数 46 浏览 4 评论 0原文

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

How to use pentaho kitchen to connect my central database repository under commandline?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

乱了心跳 2024-12-25 04:13:13

在 repositories.xml 中设置您的连接,如果您一直在使用 Spoon,您可能已经拥有其中之一。确保您运行 kitchen 的安装的 .kettle 中存在 repositories.xml。

然后只需使用这些命令行选项:

/rep“您的存储库名称”
/用户“REPO用户”
/通过“REPO PSS”

set up your connection in repositories.xml, you probably already have one of these if you have been using spoon. Make sure the repositories.xml exists in .kettle for the installation where you are running kitchen.

then simply use these command line options:

/rep "YOUR REPO NAME"
/user "REPO USER"
/pass "REPO PSS"

等风也等你 2024-12-25 04:13:13

下面是运行 Pentaho 数据集成 Kettle 作业的 Windows 脚本批处理示例:

@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%`

存储库 "name_repository" 必须在 /users/.kettle 中定义/repositories.xml。下面是该文件的示例:

<?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>

Below, an Windows script batch example to run a Pentaho Data Integration kettle Job :

@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%`

The repository "name_repository" must be defined in /users/.kettle/repositories.xml. Juste below an example of this file :

<?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>

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文