{"templateId":"markdown","sharedDataIds":{"sidebar":"sidebar-@l10n/ja/sidebars.yaml"},"props":{"metadata":{"markdoc":{"tagList":[]},"type":"markdown"},"seo":{"title":"レガシーバルクインポートのヒントとコツ","description":"Treasure Data Product Documentation · Collect and Unify · Segment and Activate · Experiment and Analyze · Decisioning Automate with AI Scale and Trust.","siteUrl":"https://docs.treasuredata.com","lang":"en-US","llmstxt":{"hide":false,"sections":[{"title":"Table of contents","includeFiles":["**/*"],"excludeFiles":[]}],"excludeFiles":[]}},"dynamicMarkdocComponents":[],"compilationErrors":[],"ast":{"$$mdtype":"Tag","name":"article","attributes":{},"children":[{"$$mdtype":"Tag","name":"Heading","attributes":{"level":1,"id":"レガシーバルクインポートのヒントとコツ","__idx":0},"children":["レガシーバルクインポートのヒントとコツ"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["この記事では、バルクインポートに関するヒントとコツについて説明します。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"エラー解決-リモートxmlリソースへのアクセスに問題が発生しました","__idx":1},"children":["エラー解決: リモートXMLリソースへのアクセスに問題が発生しました"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["このエラーは、v0.16.7以前のバージョンで発生した可能性があります。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["td import:jar_update"]},"で以下のエラーが発生した場合は、次のいずれかの解決策を使用してエラーを解決してください。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"エラーメッセージ","__idx":2},"children":["エラーメッセージ:"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"header":{"controls":{"copy":{}}},"source":"Error: There was a problem accessing the remote XML resource\n'http://central.maven.org/maven2/com/treasuredata/td-import/maven-metadata.xml'\n(TreasureData::Command::UpdateError: An error occurred when fetching\nfrom 'http://central.maven.org/maven2/com/treasuredata/td-import/maven-metadata.xml'.)\n"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"解決策1-td-toolbeltバージョンの更新","__idx":3},"children":["解決策1: TD Toolbeltバージョンの更新"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["このエラーは、v0.16.8または",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/tools/cli-and-sdks/td-toolbelt"},"children":["それ以降のバージョン"]},"で解決されています。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"解決策2-変数の設定","__idx":4},"children":["解決策2: 変数の設定"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["環境変数を設定することでエラーを回避できます。"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"header":{"controls":{"copy":{}}},"source":"$ export TD_TOOLBELT_JARUPDATE_ROOT=https://repo1.maven.org\n"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"プロキシサーバーの使用","__idx":5},"children":["プロキシサーバーの使用"]},{"$$mdtype":"Tag","name":"p","attributes":{},"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":["オプション1"]}]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":""},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["オプション2"]}]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Windows"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["$ set HTTP_PROXY=http://proxy_host:8080"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["$ set HTTP_PROXY=http://user:password@proxy_host:8080"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["その他"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["$ export HTTP_PROXY=\"proxy_host:8080\""]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["$ export HTTP_PROXY=\"user:password@proxy_host:8080\""]}]}]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"並列処理によるパフォーマンスの向上","__idx":6},"children":["並列処理によるパフォーマンスの向上"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["td import:auto"]},"は、並列処理を調整するための2つのオプション",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["--parallel"]},"と",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["--prepare-parallel"]},"をサポートしています。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["完全な構文リファレンスについては、",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/tools/cli-and-sdks/td-toolbelt"},"children":["TD Toolbeltコマンドリファレンス"]},"を参照してください。"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"header":{"controls":{"copy":{}}},"source":"$ td import:auto session name <files...>\n--parallel NUM\n--prepare-parallel NUM\n"},"children":[]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Parallelは、データのアップロードに使用されるスレッド数を指定します。バルクインポートツールがネットワークを飽和させていない場合は、",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["--parallel"]},"オプションの値を増やすことができます。デフォルトは2、最大は8です。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Prepare parallelは、データをローカルで圧縮するために使用されるスレッド数を指定します。通常、この数はマシンのCPUコア数と一致する必要があります。デフォルトは2、最大は96です。"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"最大のクエリパフォーマンスを実現するための時間列の指定","__idx":7},"children":["最大のクエリパフォーマンスを実現するための時間列の指定"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["時間列がない場合は、'",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["0"]},"'を指定しないでください。Treasure Dataはデフォルトでデータを時間別にパーティション分割します。",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://docs.treasuredata.com/smart/project-product-documentation/data-partitioning-in-treasure-data"},"children":["データパーティショニング"]},"を参照してください。常に時間列を指定するか、現在の時刻を指定することをお勧めします。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"jar_update自動更新の有効化または無効化の選択","__idx":8},"children":["Jar_Update自動更新の有効化または無効化の選択"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["自動jar_updateを有効/無効にするオプションは、td v0.11.2以降のバージョンに含まれています"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["環境変数フック: TD_TOOLBELT_JAR_UPDATE。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"jarの自動更新はデフォルトで有効化されているか変数が1の場合に有効化されます","__idx":9},"children":["JARの自動更新はデフォルトで有効化されているか、変数が1の場合に有効化されます:"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"header":{"controls":{"copy":{}}},"source":"$ td import:prepare\n$ TD_TOOLBELT_JAR_UPDATE=1 td import:prepare\n"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"jarの自動更新は変数が0に設定されると無効化されます","__idx":10},"children":["JARの自動更新は変数が0に設定されると無効化されます:"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"header":{"controls":{"copy":{}}},"source":"$ TD_TOOLBELT_JAR_UPDATE=0 td import:prepare\n"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["ただし、この設定はtd import:jar_updateには影響しません。このコマンドは常にJARファイルを更新します。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"タイムゾーンの確認","__idx":11},"children":["タイムゾーンの確認"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["バルクインポートツールはTZ環境変数を使用します。バルクインポートのタイムゾーンが間違っていると思われる場合は、TZ環境変数を確認してください。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"shift_jisエンコーディング","__idx":12},"children":["Shift_JISエンコーディング"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["shift_jisをエンコードする場合は、エンコーディングオプションを'-e Windows-31J'に設定する必要があります。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"time-formatの使用","__idx":13},"children":["Time-Formatの使用"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["データソースの時刻フォーマットをバルクインポートに割り当てたい場合は、次の対応表に従って--time-formatを使用できます。"]},{"$$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":"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":["Y,G"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["世紀を含む年"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["年"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["1996; 2006"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["y,g"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["年の下2桁"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["年"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["96; 06"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["m"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["年の月"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["月"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["01..12"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["B,b"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["完全/省略形の月名"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["月"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["January; Jan"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["d,e"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["月の日、ゼロ/空白パディング"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["数値"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["01..31; 1…31"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["V"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["週ベースの年の週番号"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["数値"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["01..53"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["j"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["年の日"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["数値"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["0-365"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["A,a"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["完全/省略形の曜日名"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["テキスト"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Tuesday; Tue"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["H,k"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["日の時"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["数値"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["00-23; 0-23"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["I,l"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["日の時"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["数値"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["00-11; 0-11"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["M"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["時の分"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["数値"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["00-59"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["S"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["分の秒"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["数値"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["00-59"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["L"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["ミリ秒"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["数値"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["000-999"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["P,p"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["AM/PM; am/pmマーカー"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["テキスト"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["AM; PM; am; pm"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Z,z"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["タイムゾーン"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["一般的なタイムゾーン"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["GMT-08:00; -0800"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["c"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["年から秒まで"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["テキスト"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Tue Jan 1 14:00:00 2016"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["D,x"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["年から日まで"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["テキスト"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["01/01/16"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["F"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["年から日まで"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["テキスト"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["2016-01-01"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["T,X"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["時から秒まで"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["テキスト"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["14:00:00"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["r"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["時から秒までam/pm"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["テキスト"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["02:00:00 pm"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["R"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["時から分まで"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["テキスト"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["14:00"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["n"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["改行文字"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["LF"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["\\n"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["t"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["タブ文字"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Tab"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["\\t"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["%"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["リテラル%文字"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["%"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["%"]}]}]}]}]}]},"headings":[{"value":"レガシーバルクインポートのヒントとコツ","id":"レガシーバルクインポートのヒントとコツ","depth":1},{"value":"エラー解決: リモートXMLリソースへのアクセスに問題が発生しました","id":"エラー解決-リモートxmlリソースへのアクセスに問題が発生しました","depth":2},{"value":"エラーメッセージ:","id":"エラーメッセージ","depth":3},{"value":"解決策1: TD Toolbeltバージョンの更新","id":"解決策1-td-toolbeltバージョンの更新","depth":3},{"value":"解決策2: 変数の設定","id":"解決策2-変数の設定","depth":3},{"value":"プロキシサーバーの使用","id":"プロキシサーバーの使用","depth":2},{"value":"並列処理によるパフォーマンスの向上","id":"並列処理によるパフォーマンスの向上","depth":2},{"value":"最大のクエリパフォーマンスを実現するための時間列の指定","id":"最大のクエリパフォーマンスを実現するための時間列の指定","depth":2},{"value":"Jar_Update自動更新の有効化または無効化の選択","id":"jar_update自動更新の有効化または無効化の選択","depth":2},{"value":"JARの自動更新はデフォルトで有効化されているか、変数が1の場合に有効化されます:","id":"jarの自動更新はデフォルトで有効化されているか変数が1の場合に有効化されます","depth":3},{"value":"JARの自動更新は変数が0に設定されると無効化されます:","id":"jarの自動更新は変数が0に設定されると無効化されます","depth":3},{"value":"タイムゾーンの確認","id":"タイムゾーンの確認","depth":2},{"value":"Shift_JISエンコーディング","id":"shift_jisエンコーディング","depth":2},{"value":"Time-Formatの使用","id":"time-formatの使用","depth":2}],"frontmatter":{"seo":{"title":"レガシーバルクインポートのヒントとコツ"}},"lastModified":"2026-01-09T05:58:30.000Z","pagePropGetterError":{"message":"","name":""}},"slug":"/ja/int/legacy-bulk-import-tips-and-tricks","userData":{"isAuthenticated":false,"teams":["anonymous"]},"isPublic":true}