hiveql - SemanticException adding partiton Hive table -
Try creating a partition on one hive table with the following:
& gt; Change the table stock_iciator if not present & gt; Split (stock_symbol = 'ASP') & gt; Which produces the following output Failure: Not a segment of the semantic expansion table, but the partitioning device exists: {0} Stock_symbol = ASP}
There is no partition on this table before this extra effort
& gt; Show split stock_ticker; The results
failed: execution error, return code from org.apache.hadoop.hive.ql.exec.DDLTask 1. Table stock_ticker_sample is not a partition table There is no question that the stock_symbol column exists and is of type string.
The solution will be to add split information to the definition of the stock_ticker table: Create external tablet stock_ticker (...) (stock_assemball STRING); Then you can easily add external data to your table:
& gt; Change the table stock_iciator if not present & gt; Split (stock_symbol = 'ASP') & gt; Location 'data / stock_tyakar_sample / stock_sombol = ASP /' GL!
Comments
Post a Comment