{"templateId":"markdown","sharedDataIds":{"sidebar":"sidebar-@l10n/ja/sidebars.yaml"},"props":{"metadata":{"markdoc":{"tagList":[]},"type":"markdown"},"seo":{"title":"Amazon S3 Import Integration V2","description":"Treasure AIのAmazon S3 Import Integration V2で、S3バケットからJSON、TSV、CSVファイルを簡単にインポートできます。assume_role認証のサポートなど、v1からの新機能を紹介します。","siteUrl":"https://docs.treasure.ai","lang":"en-US","jsonLd":{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://www.treasure.ai/","name":"Treasure AI","url":"https://www.treasure.ai/","logo":"https://www.treasure.ai/hubfs/assets/images/logos/primary-logo.svg"},{"@type":"WebSite","@id":"https://docs.treasure.ai/#website","name":"Treasure AI Documentation","url":"https://docs.treasure.ai/","inLanguage":["en","ja"],"publisher":{"@id":"https://www.treasure.ai/"}}]}},"dynamicMarkdocComponents":[],"compilationErrors":[],"ast":{"$$mdtype":"Tag","name":"article","attributes":{},"children":[{"$$mdtype":"Tag","name":"Heading","attributes":{"level":1,"id":"amazon-s3-import-integration-v2","__idx":0},"children":["Amazon S3 Import Integration V2"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Amazon S3向けインポートデータコネクタにより、S3バケットに保存されているJSON、TSV、CSVファイルからデータをインポートすることができます。Amazon S3 Import Integration v2とv1の主な違いとメリットは、",{"$$mdtype":"Tag","name":"em","attributes":{},"children":["assume_role"]},"認証のサポートが追加されたことです。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"amazon-s3-import-integration-v2とv1の認証方式について","__idx":1},"children":["Amazon S3 Import Integration v2とv1の認証方式について"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["以下の表の情報を確認して、v2とv1の認証の違いを理解してください。v1の詳細については、",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/int/amazon-s3-import-integration-v1"},"children":["Amazon S3 Import Integration v1"]},"を参照してください。"]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"認証方式"},"children":["認証方式"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Amazon S3 v2"},"children":["Amazon S3 v2"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Amazon S3 v1"},"children":["Amazon S3 v1"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["basic"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["x"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["x"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["anonymous"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["x"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["session"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["x"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["x"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["assume_role"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["x"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[]}]}]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"前提条件","__idx":2},"children":["前提条件"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Treasure Dataの基本的な知識"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"s3-bucket-policy-設定","__idx":3},"children":["S3 Bucket Policy 設定"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["TD リージョンと同じリージョンにある AWS S3 バケットを使用している場合、TD がバケットにアクセスする IP アドレスはプライベートで動的に変化します。アクセスを制限したい場合は、静的 IP アドレスではなく VPC の ID を指定してください。例えば、US リージョンの場合は vpc-df7066ba 経由でアクセスを設定し、Tokyo リージョンの場合は vpc-e630c182 経由、EU01 リージョンの場合は vpc-f54e6a9e 経由でアクセスを設定してください。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Treasure コンソール にログインする URL から Treasure コンソール のリージョンを確認し、URL 内のリージョンのデータコネクターを参照してください。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["詳細については、",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/apis/endpoints/ip-addresses-integrations-result-workers#s3-bucket-policy-configuration-for-export-and-import-integrations"},"children":["API ドキュメント"]},"を参照してください。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"treasure-data-integration-の静的-ip-アドレス","__idx":4},"children":["Treasure Data Integration の静的 IP アドレス"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["セキュリティポリシーで IP ホワイトリストが必要な場合は、接続を成功させるために Treasure Data の IP アドレスを許可リストに追加する必要があります。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["リージョンごとに整理された静的 IP アドレスの完全なリストは、次のリンクにあります:"," ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/apis/endpoints/ip-addresses-integrations-result-workers"},"children":["IP Addresses for Integrations"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"インポート並列処理","__idx":5},"children":["インポート並列処理"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["非常に大きなファイルをインポートする場合、このインテグレーションが提供する並列インポートサポートを利用できます。これを行うには、大きなファイルを小さなファイルに分割し、小さなファイルをバッチで同時にアップロードします。ただし、非常に小さなファイルを大量にインポートしようとすると、パフォーマンスに悪影響を及ぼすことに注意してください。したがって、Treasure Dataでは、50MB未満のファイルサイズで並列入力を実行しないことを推奨しています。"," ","使用できる並列インポートスレッドのデフォルトの最大数は16です。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"treasure-コンソールを使用したaws-s3からのインポート","__idx":6},"children":["Treasure コンソールを使用したAWS S3からのインポート"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Treasure コンソールを使用してデータコネクタを作成できます。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"新しい認証の作成","__idx":7},"children":["新しい認証の作成"]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Treasure コンソール"]},"を開きます。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Integrations Hub"]}," > ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Catalog"]},"に移動します。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["S3 v2"]},"を検索し、Amazon S3 (v2)を選択します。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Create Authentication"]},"を選択します。"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/amazons3v2_b.159e893620e0c382d8217ff5d34162e687c00cced1f9998ec81f8b7128879b08.71fd65e8.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["新しいAuthenticationダイアログが開きます。選択した認証方式によって、ダイアログは次のいずれかの画面のように表示される場合があります："]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/basic.a40f8fdb7d5da59cebad60061a7a57f41030506b340a4afd45975125551421a0.71fd65e8.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/session.a2dea82cde621dbca0f47964e53b2f2e1af4cc2a6fd675bfd0ac27d49e1eaeb4.71fd65e8.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/assume.cfe6bda430fc4bb1d38ab27c22a1f2245415fa2d419f46589c76dd7893fc7132.71fd65e8.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["認証フィールドを設定し、",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Continue"]},"を選択します。"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["以下の表は、Amazon S3 Import Integration v2の認証設定パラメータについて説明しています。"]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"パラメータ"},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["パラメータ"]}]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"説明"},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["説明"]}]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Endpoint"]}]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["S3サービスエンドポイントの上書き。リージョンとエンドポイント情報は、",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"http://docs.aws.amazon.com/general/latest/gr/rande.html#s3_region"},"children":["AWS service endpoints"]},"ドキュメントから確認できます。（例：",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://s3.ap-northeast-1.amazonaws.com/"},"children":[{"$$mdtype":"Tag","name":"em","attributes":{},"children":["s3.ap-northeast-1.amazonaws.com"]}]},"）"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["指定すると、リージョン設定が上書きされます。"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Region"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["AWSリージョン"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Authentication Method"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["basic"]},": access_key_idとsecret_access_keyを使用して認証します。",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://docs.aws.amazon.com/general/latest/gr/managing-aws-access-keys.html"},"children":["AWS Programmatic access"]},"を参照してください。必須パラメータ：",{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Access Key ID"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Secret access key"]}]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["session"]},"（推奨）: 一時的に生成されたaccess_key_id、secret_access_key、session_tokenを使用します。必須パラメータ：",{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Access Key ID"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Secret access key"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Secret token"]}]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["assume_role"]},": ロールアクセスを使用します。",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://docs.aws.amazon.com/STS/latest/APIReference/API_AssumeRole.html"},"children":["AWS AssumeRole"]},"を参照してください。必須パラメータ：",{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["TD's Instance Profile"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Account ID"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Your Role Name"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["External ID"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Duration In Seconds"]}]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["anonymous"]},": サポートされていません。"]}]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Access Key ID"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["AWS S3が発行"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Secret Access Key"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["AWS S3が発行"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Secret token"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["一時認証情報用のセッショントークン"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["TD's Instance Profile"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["この値はTreasure コンソールから提供されます。この値の数値部分が、IAMロールを作成する際に使用するAccount IDになります。"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Account ID"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["あなたのAWSアカウントID"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Your Role Name"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["あなたのAWSロール名"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["External ID"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["あなたのシークレット外部ID"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Duration In Seconds"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["一時認証情報の有効期間"]}]}]}]}]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["新しいAWS S3接続に名前を付け、",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Done"]},"を選択します。"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"assume_role認証方式を使用した認証の作成","__idx":8},"children":["assume_role認証方式を使用した認証の作成"]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["assume_role認証方式で新しい認証を作成します。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["TD's Instance Profileフィールドの値の数値部分をメモしておきます。"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/4f8559a3-4f70-4c83-b8b9-adaaec64662f_1_201_a.1331328bd097ab94743fc3d5f53d63f8cbc98ad689475b3adc5b21335a2e22e3.71fd65e8.jpeg","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"ol","attributes":{"start":3},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["AWS IAMロールを作成します。"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/ea9e1f37-be45-4ac6-97fa-4b46f65b0388_1_201_a.99af6c7efd4bcd9e50a04d5457e1febf3da2f104b7a090d9bcc307dc3dc8d8c3.71fd65e8.jpeg","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/45c6048c-cc9e-40c1-b0f4-529e356d6e16_1_201_a.bb869c9c9ad66cdecbebc9b2b1231acd5f24c98517c6bc2cfb6ec67efcd884ef.71fd65e8.jpeg","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"aws-s3データをtreasure-dataに転送する","__idx":9},"children":["AWS S3データをTreasure Dataに転送する"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["認証済み接続を作成すると、自動的にAuthenticationsページに移動します。"]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["作成した接続を検索します。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["New Source"]},"を選択します。"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/image-20191014-185537.a673857cd3d7cd4d6249e93718c2c0b501d3da0ab1a5cfef2dd54c1fb6478775.71fd65e8.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"connection","__idx":10},"children":["Connection"]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Data Transferフィールドに",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Source"]},"の名前を入力します**。**"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Next"]},"をクリックします。"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/s3_new.5fa3911b9f90a38cdf2daddcdf9cb8cebe026cc85658ca1f4da2ba69f80fc138.71fd65e8.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"source-table","__idx":11},"children":["Source Table"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Sourceダイアログが開きます。"]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["以下のパラメータを編集します。"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/image-20200714-230936.8f5e75b81b4ba3f8922f5ade1c5d5d06284c8f229cde7360b413f9e024fecf27.71fd65e8.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"パラメータ"},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["パラメータ"]}]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"説明"},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["説明"]}]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Bucket"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["S3バケット名を指定します（例：",{"$$mdtype":"Tag","name":"em","attributes":{},"children":["your_bucket_name"]},"）"]}]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Path Prefix"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["ターゲットキーのプレフィックスを指定します。（例：",{"$$mdtype":"Tag","name":"em","attributes":{},"children":["logs/data_"]},"）"]}]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Path Regex"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["正規表現を使用してファイルパスをマッチングします。ファイルパスが指定されたパターンにマッチしない場合、そのファイルはスキップされます。例えば、パターン ",{"$$mdtype":"Tag","name":"em","attributes":{},"children":[".csv$"]}," # を指定した場合、パスがそのパターンにマッチしないファイルはスキップされます。",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_Expressions"},"children":["正規表現"]},"について詳しくは、こちらをご覧ください。"]}]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Skip Glacier Objects"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Amazon Glacierストレージクラスに保存されているオブジェクトの処理をスキップする場合に選択します。オブジェクトがGlacierストレージクラスに保存されているにもかかわらず、このオプションがチェックされていない場合、例外がスローされます。"]}]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Filter by Modified Time"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["取り込むファイルをフィルタリングする方法を選択します："]}]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["未チェック（デフォルト）："]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Start after path"]},": last_path パラメータを挿入して、最初の実行時にこのパスより前のファイルをスキップします。（例：logs/data_20170101.csv）"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Incremental"]},": インクリメンタルローディングを有効にします。インクリメンタルローディングが有効な場合、次回実行時の設定差分には last_path パラメータが含まれるため、次回実行時にそのパスより前のファイルがスキップされます。それ以外の場合、last_path は含まれません。"]}]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["チェック済み："]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Modified after:"]}," last_modified_time パラメータを挿入して、最初の実行時に指定されたタイムスタンプより前に変更されたファイルをスキップします（例：2019-06-03T10:30:19.806Z）"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Incremental by Modified Time:"]}," 変更時刻によるインクリメンタルローディングを有効にします。インクリメンタルローディングが有効な場合、次回実行時の設定差分には last_modified_time パラメータが含まれるため、次回実行時にその時刻より前に変更されたファイルがスキップされます。それ以外の場合、last_modified_time は含まれません。設定差分が設定されると、この値を変更することはできません"]}]}]}]}]}]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["ディレクトリ（トップレベルディレクトリ「/」など）内のすべてのファイルをスキャンする必要がある場合があります。このような場合は、CLIを使用してインポートを実行する必要があります。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["例"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Amazon CloudFrontは、静的および動的Webコンテンツの配信を高速化するWebサービスです。CloudFrontを設定して、CloudFrontが受信するすべてのユーザーリクエストに関する詳細情報を含むログファイルを作成できます。ロギングを有効にすると、CloudFrontを次のようにログファイルを保存するように設定できます："]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"header":{"controls":{"copy":{}}},"source":"[your_bucket] - [logging] - [E231A697YXWD39.2017-04-23-15.a103fd5a.gz][your_bucket] - [logging] - [E231A697YXWD39.2017-04-23-15.b2aede4a.gz][your_bucket] - [logging] - [E231A697YXWD39.2017-04-23-16.594fa8e6.gz][your_bucket] - [logging] - [E231A697YXWD39.2017-04-23-16.d12f42f9.gz]\n"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["この場合、Source Tableの設定は次のようになります："]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Bucket"]},": your_bucket"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Path Prefix"]},": logging/"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Path Regex"]},": ",{"$$mdtype":"Tag","name":"em","attributes":{},"children":[".gz$"]}," （必須ではありません）"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Start after path"]},": logging/E231A697YXWD39.2017-04-23-15.b2aede4a.gz （2017-04-23-16からログファイルをインポートする場合）"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Incremental"]},": true （このジョブをスケジュール設定する場合）"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["BZip2デコーダープラグインはデフォルトでサポートされています。",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/products/customer-data-platform/integration-hub/batch/import/decoder/file-decoder-function"},"children":["File Decoder Function"]},"を参照してください。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"data-settings","__idx":12},"children":["Data Settings"]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Next"]},"を選択します。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Data Settingsページが開きます。"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["必要に応じて、データ設定を編集するか、このダイアログのページをスキップします。"]}]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/screenshot-2025-01-07-at-21.02.14.6aa2eac7a1fefcc0630398e0eec37ae0693703af3231fd00a30c26779a405617.71fd65e8.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"filters","__idx":13},"children":["Filters"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Filters は、S3、FTP、または SFTP コネクターの Create Source または Edit Source インポート設定で使用できます。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Import Integration Filters を使用すると、インポート用の",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://docs.treasuredata.com/smart/project-product-documentation/editing-data-settings"},"children":["データ設定の編集"]},"を完了した後、インポートされたデータを変更できます。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["import integration filters を適用するには:"]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Data Settings で ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Next"]}," を選択します。Filters ダイアログが開きます。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["追加したいフィルターオプションを選択します。",{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/image-20200609-201955.eed6c6da800ba40d1d98b92e767d9a8f7500cad8a9d4079121190b7d34c23294.c7246827.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Add Filter"]}," を選択します。そのフィルターのパラメーターダイアログが開きます。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["パラメーターを編集します。各フィルタータイプの情報については、次のいずれかを参照してください:"]}]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Retaining Columns Filter"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Adding Columns Filter"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Dropping Columns Filter"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Expanding JSON Filter"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Digesting Filter"]}]},{"$$mdtype":"Tag","name":"ol","attributes":{"start":5},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["オプションで、同じタイプの別のフィルターを追加するには、特定の列フィルターダイアログ内で ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Add"]}," を選択します。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["オプションで、別のタイプの別のフィルターを追加するには、リストからフィルターオプションを選択して、同じ手順を繰り返します。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["追加したいフィルターを追加した後、",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Next"]}," を選択します。Data Preview ダイアログが開きます。"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"data-preview","__idx":14},"children":["Data Preview"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["インポートを実行する前に、Generate Preview を選択してデータの",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/products/customer-data-platform/integration-hub/batch/import/previewing-your-source-data"},"children":["プレビュー"]},"を表示できます。Data preview はオプションであり、選択した場合はダイアログの次のページに安全にスキップできます。"]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Next"]}," を選択します。Data Preview ページが開きます。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["データをプレビューする場合は、",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Generate Preview"]}," を選択します。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["データを確認します。"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"data-placement","__idx":15},"children":["Data Placement"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["データの配置について、データを配置したいターゲット database と table を選択し、インポートを実行する頻度を指定します。"]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Next"]}," を選択します。Storage の下で、インポートされたデータを配置する新しい database を作成するか、既存の database を選択し、新しい table を作成するか、既存の table を選択します。"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Database"]}," を選択 > ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Select an existing"]}," または ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Create New Database"]}," を選択します。"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["オプションで、database 名を入力します。"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Table"]}," を選択 > ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Select an existing"]}," または ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Create New Table"]}," を選択します。"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["オプションで、table 名を入力します。"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["データをインポートする方法を選択します。"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Append"]}," (デフォルト) - データインポートの結果は table に追加されます。"," ","table が存在しない場合は作成されます。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Always Replace"]}," - 既存の table の全体の内容をクエリの結果出力で置き換えます。table が存在しない場合は、新しい table が作成されます。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Replace on New Data"]}," - 新しいデータがある場合のみ、既存の table の全体の内容をクエリの結果出力で置き換えます。"]}]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Timestamp-based Partition Key"]}," 列を選択します。"," ","デフォルトキーとは異なるパーティションキーシードを設定したい場合は、long または timestamp 列をパーティショニング時刻として指定できます。デフォルトの時刻列として、add_time フィルターで upload_time を使用します。"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["データストレージの ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Timezone"]}," を選択します。"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Schedule"]}," の下で、このクエリを実行するタイミングと頻度を選択できます。"]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"一度だけ実行","__idx":16},"children":["一度だけ実行"]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Off"]}," を選択します。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Scheduling Timezone"]}," を選択します。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Create & Run Now"]}," を選択します。"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"定期的に繰り返す","__idx":17},"children":["定期的に繰り返す"]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["On"]}," を選択します。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Schedule"]}," を選択します。UI では、",{"$$mdtype":"Tag","name":"em","attributes":{},"children":["@hourly"]},"、",{"$$mdtype":"Tag","name":"em","attributes":{},"children":["@daily"]},"、",{"$$mdtype":"Tag","name":"em","attributes":{},"children":["@monthly"]},"、またはカスタム ",{"$$mdtype":"Tag","name":"em","attributes":{},"children":["cron"]}," の 4 つのオプションが提供されます。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Delay Transfer"]}," を選択して、実行時間の遅延を追加することもできます。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Scheduling Timezone"]}," を選択します。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Create & Run Now"]}," を選択します。"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["転送が実行された後、",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Data Workbench"]}," > ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Databases"]}," で転送の結果を確認できます。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"data-connector-ジョブの検証","__idx":18},"children":["Data Connector ジョブの検証"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"データインポートの問題をトラブルシューティングするには","__idx":19},"children":["データインポートの問題をトラブルシューティングするには?"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["ジョブログを確認してください。警告とエラーは、インポートの成功に関する情報を提供します。例えば、",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://docs.treasuredata.com/smart/project-product-documentation/data-import-error-troubleshooting"},"children":["インポートエラーに関連する source ファイル名を特定"]},"できます。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["特定のジョブの詳細を確認するには、そのジョブを選択して詳細を表示します。ジョブのタイプに応じて、次のいずれか、またはすべてを確認できます: 結果、クエリ、出力ログ、エンジンログ、詳細、および宛先。"]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Treasure コンソール を開きます。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Jobs"]}," に移動します。ページの右上に記載されているジョブの数を確認できます。"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/managing_jobs__360001457707__mceclip0.da001c56a934e6cb6001326ffbcf4a0e84c98aeebcb735879d974db1df660a4c.22d00320.png","alt":""},"children":[]}," ","3. オプションで、フィルターを使用してジョブのリストを絞り込み、ジョブ所有者、日付、database 名などでフィルタリングして、関心のあるものを見つけます。"," ","4. ジョブを選択して開き、結果、クエリ定義、ログ、その他の詳細を表示します。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/managing_jobs__360001457707__mceclip1.8d80bfeb65a6425ba20c1ae0657bc6024a69694a10772e71c54baccf74c5c7f7.22d00320.png","alt":""},"children":[]}," ","5. 各タブには、ジョブに関する異なる情報が表示されます。"]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"タブ名"},"children":["タブ名"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"説明"},"children":["説明"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Results"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["ジョブからインポートされたデータを表示します。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["ここから、結果をクリップボードにコピーしたり、CSV ファイルとしてダウンロードしたりできます。"]}]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Query"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["ジョブのクエリ構文を表示します"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["クエリエディターを起動します"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["クエリをコピーして、新しいクエリや workflow を作成するために使用します"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["クエリを改良して効率を向上させます"]}]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Output および Engine Logs"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["ログ情報は、実行時間、クエリ結果の数、エラーコードについて確認できます"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["ログ情報はクリップボードにコピーできます"]}]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Details"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["詳細情報を表示します:",{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["クエリ名"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["タイプ"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["ジョブ ID"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["ステータス"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["期間"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["スケジュールされた時刻と実際の時刻"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["結果の数とサイズ"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["ランナー"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["クエリされた database"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["優先度"]}]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Destination"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["ここでは、エクスポート integration 設定の詳細を表示できます（インポート integration には適用されません）:   - integration - タイプ - 設定"]}]}]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"workflowを使用したaws-s3からのインポート","__idx":20},"children":["Workflowを使用したAWS S3からのインポート"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Amazon S3 Import Integration v2のv1に対する主な違いと利点は、assume_role認証のサポートが追加されたことです。認証方法としてassume_roleを使用する場合、認証を明示的に宣言することはできません。認証を再利用したWorkflow設定については、",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/products/customer-data-platform/integration-hub/authentications/reusing-an-existing-authentication"},"children":["既存の認証の再利用"]},"を参照してください。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Workflowは、一意のIDでジョブを開始できます。詳細については、",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/products/customer-data-platform/data-workbench/workflows/operators/td_load"},"children":["td_load"]},"を参照してください。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"cli-toolbeltを使用したaws-s3からのインポート","__idx":21},"children":["CLI (Toolbelt)を使用したAWS S3からのインポート"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["オプションで、TD Toolbeltを使用して接続の設定、ジョブの作成、ジョブ実行のスケジュール設定を行うことができます。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"cliを使用したコネクタの設定","__idx":22},"children":["CLIを使用したコネクタの設定"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["コネクタを設定する前に、最新のTD Toolbeltをインストールしてください。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["CLIとYAMLファイルを使用して増分ロードを計画している場合は、Treasure コンソールで既存のソースコネクタを使用する必要があります。増分ロード機能は、コンソールで処理された最後のレコードに関する情報を保持するためです。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"seed設定ファイルseedymlの作成","__idx":23},"children":["Seed設定ファイル(seed.yml)の作成"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["以下の例に示すように、AWSアクセスキーを使用して",{"$$mdtype":"Tag","name":"em","attributes":{},"children":["seed.yml"]},"ファイルを設定します。バケット名とソースファイル名も指定する必要があります。オプションで、複数のファイルに一致させるためにpath_prefixを指定できます。以下の例では、path_prefix: ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["path/to/sample_fileは以下に一致します"]}]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["path/to/sample_201501.csv.gz"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["path/to/sample_201502.csv.gz"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["path/to/sample_201505.csv.gz"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["など"]}]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["path_prefixを先頭の'/'付きで使用すると、意図しない結果になる可能性があります。例えば、「path_prefix: /path/to/sample_file」とすると、プラグインはs3://sample_bucket//path/to/sample_fileでファイルを探すことになり、これはS3上では意図したパスs3://sample_bucket/path/to/sample_fileとは異なります。"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"yaml","header":{"controls":{"copy":{}}},"source":"in:\n  type: s3_v2\n  access_key_id: XXXXXXXXXX\n  secret_access_key: YYYYYYYYYY\n  bucket: sample_bucket\n  # path to the *.json or *.csv or *.tsv file on your s3 bucket\n  path_prefix: path/to/sample_file\n  path_match_pattern: \\.csv$ # a file will be skipped if its path doesn't match with this pattern\n  ## some examples of regexp:\n  #path_match_pattern: /archive/ # match files in .../archive/... directory\n  #path_match_pattern: /data1/|/data2/ # match files in .../data1/... or .../data2/... directory\n  #path_match_pattern: .csv$|.csv.gz$ # match files whose suffix is .csv or .csv.gz\nout:\n  mode: append\n","lang":"yaml"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["既存の認証を再利用する場合は、",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["td_authentication_id"]},"設定キーの値に認証IDを設定します。これは、assume-role認証方法に必要です。",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"#%E6%97%A2%E5%AD%98%E3%81%AEauthentication%E3%81%AE%E5%86%8D%E5%88%A9%E7%94%A8"},"children":["既存の認証の再利用"]},"を参照してください。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"フィールドの推測loadymlの生成","__idx":24},"children":["フィールドの推測(load.ymlの生成)"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"em","attributes":{},"children":["connector:guess"]},"は、ソースファイルを自動的に読み取り、ファイル形式とフィールドおよび列を評価します。"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"td connector:guess seed.yml -o load.yml\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["load.ymlファイルを確認すると、ファイル形式、エンコーディング、カラム名、型を含む「推測された」ファイル形式定義が表示されます。"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"yaml","header":{"controls":{"copy":{}}},"source":"in:\n  type: s3_v2\n  access_key_id: XXXXXXXXXX\n  secret_access_key: YYYYYYYYYY\n  bucket: sample_bucket\n  path_prefix: path/to/sample_file\n  parser:\n    charset: UTF-8\n    newline: CRLF\n    type: csv\n    delimiter: ','\n    quote: '\"'\n    escape: ''\n    skip_header_lines: 1\n    columns:\n    - name: id\n      type: long\n    - name: company\n      type: string\n    - name: customer\n      type: string\n    - name: created_at\n      type: timestamp\n      format: '%Y-%m-%d %H:%M:%S'\nout:\n  mode: append\n","lang":"yaml"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"em","attributes":{},"children":["td connector:preview"]},"コマンドを使用してデータのプレビューを表示できます。"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"td connector:preview load.yml\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["connector:guessコマンドはソースデータから3行以上、2カラム以上のデータを必要とします。これは、コマンドがソースデータのサンプル行を使用してカラム定義を評価するためです。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["システムがカラム名またはカラムタイプを予期せず検出した場合は、load.ymlを直接変更して再度プレビューしてください。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["現在、Data Connectorは\"boolean\"、\"long\"、\"double\"、\"string\"、\"timestamp\"タイプの解析をサポートしています。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"load-jobの実行","__idx":25},"children":["Load Jobの実行"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Load Jobを送信します。データのサイズによっては数時間かかる場合があります。データを保存するTreasure Dataのデータベースとテーブルを指定します。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Treasure Dataのストレージは時刻でパーティション化されているため、",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["--time-column"]},"オプションを指定することが推奨されます（",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/products/customer-data-platform/data-workbench/queries/data-partitioning-in-treasure-data"},"children":["data partitioning"]},"を参照）。このオプションが指定されていない場合、Data Connectorは最初の",{"$$mdtype":"Tag","name":"em","attributes":{},"children":["long"]},"または",{"$$mdtype":"Tag","name":"em","attributes":{},"children":["timestamp"]},"カラムをパーティション化時刻として選択します。",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["--time-column"]},"で指定するカラムの型は、",{"$$mdtype":"Tag","name":"em","attributes":{},"children":["long"]},"または",{"$$mdtype":"Tag","name":"em","attributes":{},"children":["timestamp"]},"のいずれかでなければなりません。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["データに時刻カラムがない場合は、",{"$$mdtype":"Tag","name":"em","attributes":{},"children":["add_time"]},"フィルタオプションを使用して時刻カラムを追加できます。詳細については、",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/products/customer-data-platform/integration-hub/batch/import/filter/add_time-filter-function"},"children":["add_time filter plugin"]},"を参照してください。"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"td connector:issue load.yml \\\n--database td_sample_db --table td_sample_table \\\n--time-column created_at\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["以下の例では、connector:issueコマンドは、すでに",{"$$mdtype":"Tag","name":"em","attributes":{},"children":["database(td_sample_db)",{"$$mdtype":"Tag","name":"em","attributes":{},"children":["と"]},"table(td_sample_table)",{"$$mdtype":"Tag","name":"em","attributes":{},"children":["を作成していることを前提としています。データベースまたはテーブルがTDに存在しない場合、このコマンドは失敗します。データベースとテーブルを手動で作成するか、",{"$$mdtype":"Tag","name":"em","attributes":{},"children":["td connector:issue"]},"コマンドで"]},"--auto-create-table"]},"オプションを使用してデータベースとテーブルを自動作成してください："]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"td connector:issue load.yml \\\n--database td_sample_db --table td_sample_table \\\n--time-column created_at --auto-create-table\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["データコネクタはサーバーサイドでレコードをソートしません。時間ベースのパーティショニングを効果的に使用するには、事前にファイル内のレコードをソートしておいてください。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"em","attributes":{},"children":["time"]},"という名前のフィールドがある場合は、",{"$$mdtype":"Tag","name":"em","attributes":{},"children":["--time-column"]},"オプションを指定する必要はありません。"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"td connector:issue load.yml --database td_sample_db --table td_sample_table\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"インポートモード","__idx":26},"children":["インポートモード"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["load.ymlファイルのoutセクションでファイルインポートモードを指定できます。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["out:セクションは、データがTreasure Dataテーブルにどのようにインポートされるかを制御します。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["たとえば、Treasure Dataの既存のテーブルにデータを追加するか、データを置き換えるかを選択できます。"]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"モード"},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["モード"]}]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"説明"},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["説明"]}]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"例"},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["例"]}]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Append"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["レコードがターゲットテーブルに追加されます。"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["in:  ...out:  mode: append"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Always Replace"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["ターゲットテーブルのデータを置き換えます。ターゲットテーブルに加えられた手動のスキーマ変更はそのまま保持されます。"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["in:  ...out:  mode: replace"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Replace on new data"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["インポートする新しいデータがある場合にのみ、ターゲットテーブルのデータを置き換えます。"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["in:  ...out:  mode: replace_on_new_data"]}]}]}]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"スケジュール実行","__idx":27},"children":["スケジュール実行"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["増分ファイルインポートのために、データコネクタの定期実行をスケジュールできます。高可用性を確保するために、スケジューラーを慎重に設定しています。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["スケジュールされたインポートでは、指定されたprefixに一致するすべてのファイルを、以下のいずれかのフィールドの条件でインポートできます："]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["use_modified_timeが無効の場合、最後のパスが次の実行のために保存されます。2回目以降の実行では、コネクタはアルファベット順で最後のパスの後にあるファイルのみをインポートします。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["それ以外の場合、ジョブが実行された時刻が次の実行のために保存されます。2回目以降の実行では、コネクタはその実行時刻以降にアルファベット順で変更されたファイルのみをインポートします。"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"td-toolbeltを使用したスケジュールの作成","__idx":28},"children":["TD Toolbeltを使用したスケジュールの作成"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"em","attributes":{},"children":["td connector:create"]},"コマンドを使用して新しいスケジュールを作成できます。"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"td connector:create daily_import \"10 0 * * *\" \\\ntd_sample_db td_sample_table load.yml\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Treasure Dataのストレージは時間でパーティション化されているため、",{"$$mdtype":"Tag","name":"em","attributes":{},"children":["--time-column"]},"オプションを指定することをお勧めします（",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/products/customer-data-platform/data-workbench/queries/data-partitioning-in-treasure-data"},"children":["data partitioning"]},"も参照してください）。"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"td connector:create daily_import \"10 0 * * *\" \\\ntd_sample_db td_sample_table load.yml \\\n--time-column created_at\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["cron"]},"パラメータは、",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["@hourly"]},"、",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["@daily"]},"、",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["@monthly"]},"の3つの特別なオプションも受け入れます。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["デフォルトでは、スケジュールはUTCタイムゾーンで設定されます。-tまたは--timezoneオプションを使用して、タイムゾーンでスケジュールを設定できます。",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["--timezone"]},"オプションは、'Asia/Tokyo'、'America/Los_Angeles'などの拡張タイムゾーン形式のみをサポートします。PST、CSTなどのタイムゾーンの略語は",{"$$mdtype":"Tag","name":"em","attributes":{},"children":["サポートされておらず"]},"、予期しないスケジュールにつながる可能性があります。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"すべてのスケジュールの一覧表示","__idx":29},"children":["すべてのスケジュールの一覧表示"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"em","attributes":{},"children":["td connector:list"]},"コマンドを実行すると、現在スケジュールされているエントリのリストを確認できます。"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"td connector:list\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"スケジュール設定と履歴の表示","__idx":30},"children":["スケジュール設定と履歴の表示"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"header":{"controls":{"copy":{}}},"source":"td connector:show daily_importName\n"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["td connector:history"]},"はスケジュールエントリの実行履歴を表示します。各実行の結果を調査するには、td job jobidを使用してください。"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"header":{"controls":{"copy":{}}},"source":"td connector:history\n"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"スケジュールの削除","__idx":31},"children":["スケジュールの削除"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["td connector:deleteはスケジュールを削除します。"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"header":{"controls":{"copy":{}}},"source":"td connector:delete daily_import\n"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"iam権限の設定","__idx":32},"children":["IAM権限の設定"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"em","attributes":{},"children":["connector:guess"]},"および",{"$$mdtype":"Tag","name":"em","attributes":{},"children":["connector:issue"]},"コマンドで使用されるYML設定ファイルに指定されたIAM認証情報は、アクセスする必要があるAWS S3リソースに対する権限を持っている必要があります。IAMユーザーがこれらの権限を持っていない場合は、事前定義されたポリシー定義のいずれかでユーザーを設定するか、JSON形式で新しいポリシー定義を作成してください。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["以下の例は、",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"http://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements.html"},"children":["Policy Definition reference"]},"形式に基づいています。これは、IAMユーザーに「your-bucket」への",{"$$mdtype":"Tag","name":"em","attributes":{},"children":["読み取り専用"]},"権限（GetObjectおよびListBucketアクション経由）を与えます。"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"json","header":{"controls":{"copy":{}}},"source":"{\n  \"Version\": \"2012-10-17\",\n  \"Statement\": [\n    {\n      \"Effect\": \"Allow\",\n      \"Action\": [\n        \"s3:GetObject\",\n        \"s3:ListBucket\"\n      ],\n      \"Resource\": [\n        \"arn:aws:s3:::your-bucket\",\n        \"arn:aws:s3:::your-bucket/*\"\n      ]\n    }\n  ]\n}\n","lang":"json"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["「",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["your-bucket"]},"」を実際のS3バケット名に置き換えてください。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"一時的な認証情報プロバイダとしてaws-security-token-service-stsを使用する","__idx":33},"children":["一時的な認証情報プロバイダとしてAWS Security Token Service (STS)を使用する"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["特定の場合において、access_key_idとsecret_access_keyによるIAM基本認証はリスクが高すぎる可能性があります（ジョブの実行時やセッションの作成後にsecret_access_keyが明示的に表示されることはありませんが）。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["S3データコネクタは、AWS Secure Token Service (STS)を使用して",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"http://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp.html"},"children":["Temporary Security Credentials"]},"を提供できます。AWS STSを使用すると、任意のIAMユーザーが自身のaccess_key_idとsecret_access_keyを使用して、特定の有効期限を持つ以下の一時キーを作成できます："]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["new_access_key_id"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["new_secret_access_key"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["session_token keys"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["以下はTemporary Security Credentialsのタイプです："]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"http://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_control-access_getsessiontoken.html"},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Session Token"]}]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["有効期限が指定された最もシンプルなSecurity Credentialsです。temporary credentialsは、それを生成したIAMユーザーと同じアクセス権を持ちます。これらのcredentialsは、有効期限が切れておらず、元のIAMユーザーの権限が変更されていない限り有効です。"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"http://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_control-access_getfederationtoken.html"},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Federation Token"]}]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["これは上記のSession Tokenに対して追加の権限制御レイヤーを追加します。Federation Tokenを生成する際、IAMユーザーはPermission Policy定義を指定する必要があります。このスコープを使用して、Federation Tokenの所有者がアクセスできるリソースを制限できます（トークンを付与するIAMユーザーのアクセス権より少なくすることができます）。任意の",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"http://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements.html"},"children":["Permission Policy"]},"定義を使用できますが、権限のスコープはトークンを生成したIAMユーザーの権限と同じか、そのサブセットに制限されます。Session Tokenと同様に、Federation Token credentialsは有効期限が切れておらず、元のIAM credentialsに関連付けられた権限が変更されていない限り有効です。"]}]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["AWS STS Temporary Security Credentialsは、",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://aws.amazon.com/cli/"},"children":["AWS CLI"]},"または任意の言語の",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://aws.amazon.com/tools/"},"children":["AWS SDK"]},"を使用して生成できます。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"session-token","__idx":34},"children":["Session Token"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"aws sts get-session-token --duration-seconds 900\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"federation-token","__idx":35},"children":["Federation Token"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["この例では、"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["temp_creds"]},"はFederated tokenまたはユーザーのtemp credentialsの名前です。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["bucketname"]},"はアクセスが許可されるS3バケットの名前です。（詳細については",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html#arn-syntax-s3"},"children":["ARN specification"]},"を参照してください）"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["s3:GetObject"]},"と",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["s3:ListBucket"]},"はAWS S3バケットの基本的な読み取り操作です。"]}]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"aws sts get-federation-token --name temp_creds --duration-seconds 900 \\\n--policy '{\"Statement\": [{\"Effect\": \"Allow\", \"Action\": [\"s3:GetObject\", \"s3:ListBucket\"], \"Resource\": \"arn:aws:s3:::bucketname\"}]}'\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["AWS STS credentialsは取り消すことができません。有効期限が切れるか、credentialsを生成するために使用した元のIAMユーザーの権限を削除または取り消すまで有効です。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Temporary Security Credentialsが生成されたら、",{"$$mdtype":"Tag","name":"em","attributes":{},"children":["seed.yml"]},"ファイルに",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["SecretAccessKey"]},"、",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["AccessKeyId"]},"、",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["SessionToken"]},"を含め、通常通りS3用のData Connectorを実行します。"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"header":{"controls":{"copy":{}}},"source":"in:\n  type: s3_v2\n  auth_method: session\n  access_key_id: XXXXXXXXXX\n  secret_access_key: YYYYYYYYYY\n  session_token: ZZZZZZZZZZ\n  bucket: sample_bucket\n  path_prefix: path/to/sample_file\n"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"credential-expiration","__idx":36},"children":["Credential Expiration"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["STS credentialsは指定された時間後に有効期限が切れるため、credentialを使用するdata connector jobは最終的に失敗し始める可能性があります。現在、STS credentialsの有効期限が切れたと報告された場合、data connector jobは最大回数（5回）までリトライし、最終的に「error」のstatusで完了します。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["インポートを確認するには、",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/int/amazon-s3-import-integration-v2"},"children":["Validating Your Data Connector Jobs"]},"の手順を参照してください。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"既存のauthenticationの再利用","__idx":37},"children":["既存のAuthenticationの再利用"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["この機能により、Treasure コンソール UIで定義された既存のauthenticationを再利用できます。"]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/ja/int/amazon-s3-import-integration-v2"},"children":["Treasure コンソールを使用したAWS S3からのインポート"]},"の手順に従ってauthenticationを作成します。"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Integrations Hub"]}," > ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Authentications"]},"画面に移動します"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["保存されたAuthenticationをクリックします。"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Authentication IDはブラウザのURLに表示される番号です"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/assume_role.b8145f783521c29da2c5b02358d1f5d696da7eef4b05bf71608d33bd43055686.71fd65e8.png","alt":""},"children":[]}]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["上記のAuthentication IDをconfig キー",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["td_authentication_id"]},"として使用し、Treasure ワークフローまたはCLI（Toolbelt）の設定を作成します。"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Authenticationを再利用した設定の例"]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"workflow設定","__idx":38},"children":["Workflow設定"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"yaml","header":{"controls":{"copy":{}}},"source":"+import_from_s3_assume_role_with_existing_connection:\n  td_load>: cfg_load.yml\n  database: test_db\n  table: test_tbl\n\n## cfg_load.yml\nin:\n  type: s3_v2\n  bucket: sample_bucket\n  path_prefix: path/to/sample_file\n  td_authentication_id: 287355\n  parser:\n    charset: UTF-8\n    newline: CRLF\n    type: csv\n    delimiter: \",\"\n    quote: \"\\\"\"\n    escape: \"\\\"\"\n    trim_if_not_quoted: false\n    skip_header_lines: 1\n    allow_extra_columns: false\n    allow_optional_columns: false\n    columns:\n    - name: col_1\n      type: string\n    - name: col_2\n      type: string\n\n","lang":"yaml"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"cli設定","__idx":39},"children":["CLI設定"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Seed設定の例（seed.yml）"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"yaml","header":{"controls":{"copy":{}}},"source":"in:\n  type: s3_v2\n  td_authentication_id: 287355\n  bucket: sample_bucket\n  path_prefix: path/to/sample_file\n","lang":"yaml"},"children":[]}]},"headings":[{"value":"Amazon S3 Import Integration V2","id":"amazon-s3-import-integration-v2","depth":1},{"value":"Amazon S3 Import Integration v2とv1の認証方式について","id":"amazon-s3-import-integration-v2とv1の認証方式について","depth":2},{"value":"前提条件","id":"前提条件","depth":2},{"value":"S3 Bucket Policy 設定","id":"s3-bucket-policy-設定","depth":2},{"value":"Treasure Data Integration の静的 IP アドレス","id":"treasure-data-integration-の静的-ip-アドレス","depth":2},{"value":"インポート並列処理","id":"インポート並列処理","depth":2},{"value":"Treasure コンソールを使用したAWS S3からのインポート","id":"treasure-コンソールを使用したaws-s3からのインポート","depth":2},{"value":"新しい認証の作成","id":"新しい認証の作成","depth":3},{"value":"assume_role認証方式を使用した認証の作成","id":"assume_role認証方式を使用した認証の作成","depth":3},{"value":"AWS S3データをTreasure Dataに転送する","id":"aws-s3データをtreasure-dataに転送する","depth":3},{"value":"Connection","id":"connection","depth":4},{"value":"Source Table","id":"source-table","depth":4},{"value":"Data Settings","id":"data-settings","depth":4},{"value":"Filters","id":"filters","depth":3},{"value":"Data Preview","id":"data-preview","depth":3},{"value":"Data Placement","id":"data-placement","depth":3},{"value":"一度だけ実行","id":"一度だけ実行","depth":4},{"value":"定期的に繰り返す","id":"定期的に繰り返す","depth":4},{"value":"Data Connector ジョブの検証","id":"data-connector-ジョブの検証","depth":2},{"value":"データインポートの問題をトラブルシューティングするには?","id":"データインポートの問題をトラブルシューティングするには","depth":3},{"value":"Workflowを使用したAWS S3からのインポート","id":"workflowを使用したaws-s3からのインポート","depth":2},{"value":"CLI (Toolbelt)を使用したAWS S3からのインポート","id":"cli-toolbeltを使用したaws-s3からのインポート","depth":2},{"value":"CLIを使用したコネクタの設定","id":"cliを使用したコネクタの設定","depth":3},{"value":"Seed設定ファイル(seed.yml)の作成","id":"seed設定ファイルseedymlの作成","depth":4},{"value":"フィールドの推測(load.ymlの生成)","id":"フィールドの推測loadymlの生成","depth":4},{"value":"Load Jobの実行","id":"load-jobの実行","depth":4},{"value":"インポートモード","id":"インポートモード","depth":4},{"value":"スケジュール実行","id":"スケジュール実行","depth":3},{"value":"TD Toolbeltを使用したスケジュールの作成","id":"td-toolbeltを使用したスケジュールの作成","depth":3},{"value":"すべてのスケジュールの一覧表示","id":"すべてのスケジュールの一覧表示","depth":3},{"value":"スケジュール設定と履歴の表示","id":"スケジュール設定と履歴の表示","depth":3},{"value":"スケジュールの削除","id":"スケジュールの削除","depth":3},{"value":"IAM権限の設定","id":"iam権限の設定","depth":3},{"value":"一時的な認証情報プロバイダとしてAWS Security Token Service (STS)を使用する","id":"一時的な認証情報プロバイダとしてaws-security-token-service-stsを使用する","depth":3},{"value":"Session Token","id":"session-token","depth":4},{"value":"Federation Token","id":"federation-token","depth":4},{"value":"Credential Expiration","id":"credential-expiration","depth":4},{"value":"既存のAuthenticationの再利用","id":"既存のauthenticationの再利用","depth":2},{"value":"Workflow設定","id":"workflow設定","depth":2},{"value":"CLI設定","id":"cli設定","depth":3}],"frontmatter":{"keywords":{"includes":["s3","amazon","s3 v2","s3 import"],"excludes":["s3 v1","s3 export"]},"seo":{"title":"Amazon S3 Import Integration V2","description":"Treasure AIのAmazon S3 Import Integration V2で、S3バケットからJSON、TSV、CSVファイルを簡単にインポートできます。assume_role認証のサポートなど、v1からの新機能を紹介します。"}},"lastModified":"2026-06-17T07:22:53.000Z","pagePropGetterError":{"message":"","name":""}},"slug":"/ja/int/amazon-s3-import-integration-v2","userData":{"isAuthenticated":false,"teams":["anonymous"]},"isPublic":true}