unable to perform update on a transactional table










0















I am unable to perform update on a table.



I have create the transnational table.



CREATE TABLE d_mat.mat_data( 
d_id int,
dname string,
dloc string)
CLUSTERED BY (
dloc)
INTO 2 BUCKETS
ROW FORMAT SERDE
'org.apache.hadoop.hive.ql.io.orc.OrcSerde'
STORED AS INPUTFORMAT
'org.apache.hadoop.hive.ql.io.orc.OrcInputFormat'
OUTPUTFORMAT
'org.apache.hadoop.hive.ql.io.orc.OrcOutputFormat'
TBLPROPERTIES ('transactional'='true');


I am using Hive CLI.



SET hive.support.concurrency=true;



Error: Error while processing statement: Cannot modify
hive.support.concurrency at runtime. It is not in list of params that
are allowed to be modified at runtime (state=42000,code=1)




UPDATE d_mat.mat_data SET dloc='Australia' where d_id=1;


Please help me.



Thanks in advance.










share|improve this question
























  • ask you admin to enable concurrency. it's not allowed using set

    – Gaurang Shah
    Nov 15 '18 at 18:40















0















I am unable to perform update on a table.



I have create the transnational table.



CREATE TABLE d_mat.mat_data( 
d_id int,
dname string,
dloc string)
CLUSTERED BY (
dloc)
INTO 2 BUCKETS
ROW FORMAT SERDE
'org.apache.hadoop.hive.ql.io.orc.OrcSerde'
STORED AS INPUTFORMAT
'org.apache.hadoop.hive.ql.io.orc.OrcInputFormat'
OUTPUTFORMAT
'org.apache.hadoop.hive.ql.io.orc.OrcOutputFormat'
TBLPROPERTIES ('transactional'='true');


I am using Hive CLI.



SET hive.support.concurrency=true;



Error: Error while processing statement: Cannot modify
hive.support.concurrency at runtime. It is not in list of params that
are allowed to be modified at runtime (state=42000,code=1)




UPDATE d_mat.mat_data SET dloc='Australia' where d_id=1;


Please help me.



Thanks in advance.










share|improve this question
























  • ask you admin to enable concurrency. it's not allowed using set

    – Gaurang Shah
    Nov 15 '18 at 18:40













0












0








0








I am unable to perform update on a table.



I have create the transnational table.



CREATE TABLE d_mat.mat_data( 
d_id int,
dname string,
dloc string)
CLUSTERED BY (
dloc)
INTO 2 BUCKETS
ROW FORMAT SERDE
'org.apache.hadoop.hive.ql.io.orc.OrcSerde'
STORED AS INPUTFORMAT
'org.apache.hadoop.hive.ql.io.orc.OrcInputFormat'
OUTPUTFORMAT
'org.apache.hadoop.hive.ql.io.orc.OrcOutputFormat'
TBLPROPERTIES ('transactional'='true');


I am using Hive CLI.



SET hive.support.concurrency=true;



Error: Error while processing statement: Cannot modify
hive.support.concurrency at runtime. It is not in list of params that
are allowed to be modified at runtime (state=42000,code=1)




UPDATE d_mat.mat_data SET dloc='Australia' where d_id=1;


Please help me.



Thanks in advance.










share|improve this question
















I am unable to perform update on a table.



I have create the transnational table.



CREATE TABLE d_mat.mat_data( 
d_id int,
dname string,
dloc string)
CLUSTERED BY (
dloc)
INTO 2 BUCKETS
ROW FORMAT SERDE
'org.apache.hadoop.hive.ql.io.orc.OrcSerde'
STORED AS INPUTFORMAT
'org.apache.hadoop.hive.ql.io.orc.OrcInputFormat'
OUTPUTFORMAT
'org.apache.hadoop.hive.ql.io.orc.OrcOutputFormat'
TBLPROPERTIES ('transactional'='true');


I am using Hive CLI.



SET hive.support.concurrency=true;



Error: Error while processing statement: Cannot modify
hive.support.concurrency at runtime. It is not in list of params that
are allowed to be modified at runtime (state=42000,code=1)




UPDATE d_mat.mat_data SET dloc='Australia' where d_id=1;


Please help me.



Thanks in advance.







hive






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 15 '18 at 9:40









Kaushik Nayak

21.2k41332




21.2k41332










asked Nov 15 '18 at 5:33









ramkasaramkasa

61




61












  • ask you admin to enable concurrency. it's not allowed using set

    – Gaurang Shah
    Nov 15 '18 at 18:40

















  • ask you admin to enable concurrency. it's not allowed using set

    – Gaurang Shah
    Nov 15 '18 at 18:40
















ask you admin to enable concurrency. it's not allowed using set

– Gaurang Shah
Nov 15 '18 at 18:40





ask you admin to enable concurrency. it's not allowed using set

– Gaurang Shah
Nov 15 '18 at 18:40












1 Answer
1






active

oldest

votes


















0














You are trying to update a column which is bucketed in the table(d_loc).



Hive doesn't support yet to update Bucketed columns.



Change your bucketed column to d_id



Ex:



CREATE TABLE mat_data( 
d_id int,
dname string,
dloc string)
CLUSTERED BY (
d_id)
INTO 2 BUCKETS
ROW FORMAT SERDE
'org.apache.hadoop.hive.ql.io.orc.OrcSerde'
STORED AS INPUTFORMAT
'org.apache.hadoop.hive.ql.io.orc.OrcInputFormat'
OUTPUTFORMAT
'org.apache.hadoop.hive.ql.io.orc.OrcOutputFormat'
TBLPROPERTIES ('transactional'='true');


Insert value into table:



hive> insert into mat_data values(1,"hi","das");
hive> select * from mat_data;
+----------------+-----------------+----------------+--+
| mat_data.d_id | mat_data.dname | mat_data.dloc |
+----------------+-----------------+----------------+--+
| 1 | hi | das |
+----------------+-----------------+----------------+--+


Update the table:



hive> UPDATE mat_data SET dloc='Australia' where d_id=1;
hive> select * from mat_data;
+----------------+-----------------+----------------+--+
| mat_data.d_id | mat_data.dname | mat_data.dloc |
+----------------+-----------------+----------------+--+
| 1 | hi | Australia |
+----------------+-----------------+----------------+--+



Error: Error while processing statement: Cannot modify
hive.support.concurrency at runtime. It is not in list of params that
are allowed to be modified at runtime (state=42000,code=1)




This error is related to configurations as you are trying to SET hive.support.concurrency=true;
and this property is not listed in whitelist parameters.



To fix this issue change hive.security.authorization.sqlstd.confwhitelist in Ambari.



Refer to this and this link for more details.






share|improve this answer























    Your Answer






    StackExchange.ifUsing("editor", function ()
    StackExchange.using("externalEditor", function ()
    StackExchange.using("snippets", function ()
    StackExchange.snippets.init();
    );
    );
    , "code-snippets");

    StackExchange.ready(function()
    var channelOptions =
    tags: "".split(" "),
    id: "1"
    ;
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function()
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled)
    StackExchange.using("snippets", function()
    createEditor();
    );

    else
    createEditor();

    );

    function createEditor()
    StackExchange.prepareEditor(
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader:
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    ,
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    );



    );













    draft saved

    draft discarded


















    StackExchange.ready(
    function ()
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53313033%2funable-to-perform-update-on-a-transactional-table%23new-answer', 'question_page');

    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    0














    You are trying to update a column which is bucketed in the table(d_loc).



    Hive doesn't support yet to update Bucketed columns.



    Change your bucketed column to d_id



    Ex:



    CREATE TABLE mat_data( 
    d_id int,
    dname string,
    dloc string)
    CLUSTERED BY (
    d_id)
    INTO 2 BUCKETS
    ROW FORMAT SERDE
    'org.apache.hadoop.hive.ql.io.orc.OrcSerde'
    STORED AS INPUTFORMAT
    'org.apache.hadoop.hive.ql.io.orc.OrcInputFormat'
    OUTPUTFORMAT
    'org.apache.hadoop.hive.ql.io.orc.OrcOutputFormat'
    TBLPROPERTIES ('transactional'='true');


    Insert value into table:



    hive> insert into mat_data values(1,"hi","das");
    hive> select * from mat_data;
    +----------------+-----------------+----------------+--+
    | mat_data.d_id | mat_data.dname | mat_data.dloc |
    +----------------+-----------------+----------------+--+
    | 1 | hi | das |
    +----------------+-----------------+----------------+--+


    Update the table:



    hive> UPDATE mat_data SET dloc='Australia' where d_id=1;
    hive> select * from mat_data;
    +----------------+-----------------+----------------+--+
    | mat_data.d_id | mat_data.dname | mat_data.dloc |
    +----------------+-----------------+----------------+--+
    | 1 | hi | Australia |
    +----------------+-----------------+----------------+--+



    Error: Error while processing statement: Cannot modify
    hive.support.concurrency at runtime. It is not in list of params that
    are allowed to be modified at runtime (state=42000,code=1)




    This error is related to configurations as you are trying to SET hive.support.concurrency=true;
    and this property is not listed in whitelist parameters.



    To fix this issue change hive.security.authorization.sqlstd.confwhitelist in Ambari.



    Refer to this and this link for more details.






    share|improve this answer



























      0














      You are trying to update a column which is bucketed in the table(d_loc).



      Hive doesn't support yet to update Bucketed columns.



      Change your bucketed column to d_id



      Ex:



      CREATE TABLE mat_data( 
      d_id int,
      dname string,
      dloc string)
      CLUSTERED BY (
      d_id)
      INTO 2 BUCKETS
      ROW FORMAT SERDE
      'org.apache.hadoop.hive.ql.io.orc.OrcSerde'
      STORED AS INPUTFORMAT
      'org.apache.hadoop.hive.ql.io.orc.OrcInputFormat'
      OUTPUTFORMAT
      'org.apache.hadoop.hive.ql.io.orc.OrcOutputFormat'
      TBLPROPERTIES ('transactional'='true');


      Insert value into table:



      hive> insert into mat_data values(1,"hi","das");
      hive> select * from mat_data;
      +----------------+-----------------+----------------+--+
      | mat_data.d_id | mat_data.dname | mat_data.dloc |
      +----------------+-----------------+----------------+--+
      | 1 | hi | das |
      +----------------+-----------------+----------------+--+


      Update the table:



      hive> UPDATE mat_data SET dloc='Australia' where d_id=1;
      hive> select * from mat_data;
      +----------------+-----------------+----------------+--+
      | mat_data.d_id | mat_data.dname | mat_data.dloc |
      +----------------+-----------------+----------------+--+
      | 1 | hi | Australia |
      +----------------+-----------------+----------------+--+



      Error: Error while processing statement: Cannot modify
      hive.support.concurrency at runtime. It is not in list of params that
      are allowed to be modified at runtime (state=42000,code=1)




      This error is related to configurations as you are trying to SET hive.support.concurrency=true;
      and this property is not listed in whitelist parameters.



      To fix this issue change hive.security.authorization.sqlstd.confwhitelist in Ambari.



      Refer to this and this link for more details.






      share|improve this answer

























        0












        0








        0







        You are trying to update a column which is bucketed in the table(d_loc).



        Hive doesn't support yet to update Bucketed columns.



        Change your bucketed column to d_id



        Ex:



        CREATE TABLE mat_data( 
        d_id int,
        dname string,
        dloc string)
        CLUSTERED BY (
        d_id)
        INTO 2 BUCKETS
        ROW FORMAT SERDE
        'org.apache.hadoop.hive.ql.io.orc.OrcSerde'
        STORED AS INPUTFORMAT
        'org.apache.hadoop.hive.ql.io.orc.OrcInputFormat'
        OUTPUTFORMAT
        'org.apache.hadoop.hive.ql.io.orc.OrcOutputFormat'
        TBLPROPERTIES ('transactional'='true');


        Insert value into table:



        hive> insert into mat_data values(1,"hi","das");
        hive> select * from mat_data;
        +----------------+-----------------+----------------+--+
        | mat_data.d_id | mat_data.dname | mat_data.dloc |
        +----------------+-----------------+----------------+--+
        | 1 | hi | das |
        +----------------+-----------------+----------------+--+


        Update the table:



        hive> UPDATE mat_data SET dloc='Australia' where d_id=1;
        hive> select * from mat_data;
        +----------------+-----------------+----------------+--+
        | mat_data.d_id | mat_data.dname | mat_data.dloc |
        +----------------+-----------------+----------------+--+
        | 1 | hi | Australia |
        +----------------+-----------------+----------------+--+



        Error: Error while processing statement: Cannot modify
        hive.support.concurrency at runtime. It is not in list of params that
        are allowed to be modified at runtime (state=42000,code=1)




        This error is related to configurations as you are trying to SET hive.support.concurrency=true;
        and this property is not listed in whitelist parameters.



        To fix this issue change hive.security.authorization.sqlstd.confwhitelist in Ambari.



        Refer to this and this link for more details.






        share|improve this answer













        You are trying to update a column which is bucketed in the table(d_loc).



        Hive doesn't support yet to update Bucketed columns.



        Change your bucketed column to d_id



        Ex:



        CREATE TABLE mat_data( 
        d_id int,
        dname string,
        dloc string)
        CLUSTERED BY (
        d_id)
        INTO 2 BUCKETS
        ROW FORMAT SERDE
        'org.apache.hadoop.hive.ql.io.orc.OrcSerde'
        STORED AS INPUTFORMAT
        'org.apache.hadoop.hive.ql.io.orc.OrcInputFormat'
        OUTPUTFORMAT
        'org.apache.hadoop.hive.ql.io.orc.OrcOutputFormat'
        TBLPROPERTIES ('transactional'='true');


        Insert value into table:



        hive> insert into mat_data values(1,"hi","das");
        hive> select * from mat_data;
        +----------------+-----------------+----------------+--+
        | mat_data.d_id | mat_data.dname | mat_data.dloc |
        +----------------+-----------------+----------------+--+
        | 1 | hi | das |
        +----------------+-----------------+----------------+--+


        Update the table:



        hive> UPDATE mat_data SET dloc='Australia' where d_id=1;
        hive> select * from mat_data;
        +----------------+-----------------+----------------+--+
        | mat_data.d_id | mat_data.dname | mat_data.dloc |
        +----------------+-----------------+----------------+--+
        | 1 | hi | Australia |
        +----------------+-----------------+----------------+--+



        Error: Error while processing statement: Cannot modify
        hive.support.concurrency at runtime. It is not in list of params that
        are allowed to be modified at runtime (state=42000,code=1)




        This error is related to configurations as you are trying to SET hive.support.concurrency=true;
        and this property is not listed in whitelist parameters.



        To fix this issue change hive.security.authorization.sqlstd.confwhitelist in Ambari.



        Refer to this and this link for more details.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Nov 15 '18 at 12:11









        ShuShu

        5,2262520




        5,2262520





























            draft saved

            draft discarded
















































            Thanks for contributing an answer to Stack Overflow!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid


            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.

            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53313033%2funable-to-perform-update-on-a-transactional-table%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            Use pre created SQLite database for Android project in kotlin

            Darth Vader #20

            Ondo