Uploaded image for project: 'Sqoop (Retired)'
  1. Sqoop (Retired)
  2. SQOOP-1670

Propose to add banwidth control support when using Sqoop import/export tools

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 1.4.4
    • 1.4.4
    • connectors
    • None

    Description

      As far as I know, Sqoop can't Specify the maximum amount of DB bandwidth that one Sqoop process can utilize for the import/export purpose in term of the number of bytes per second. For some cases such as online applications, DB bandwidth is very important. If one Sqoop process uses most of DB bandwidth, other apps based on the same DB will suffered a lot. So I want to provide a small patch, which is very useful for my case. When starting sqoop import/export tasks, you just need to give an argument (-Dsqoop.db.bandwidth=5242880, means specifying bandwidth to 5M) after import or export tool name, for example:
      $bin/sqoop import -Dsqoop.db.bandwidth=5242880 --connect jdbc:mysql://192.168.1.28:9001/db_name --table t_order --hbase-table t_order --column-family f --hbase-create-table --username 'root' --password 'root' --m 3

      Attachments

        1. db-bandwidth-ctrl.patch
          6 kB
          Eric Huang

        Activity

          People

            Unassigned Unassigned
            alipayhuber Eric Huang
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: