我如何在蜂巢中执行更新?

时间:2017-10-30 10:55:14

标签: hive hortonworks-data-platform

我正在使用IBM沙盒的hortonworks在hive中执行更新。 我创建了具有ACID属性的表,并且还创建了表。 然后我做了set hive.txn.manager。 然后我收到以下消息:

FAILED: Semantic Exception [Error 10294]: Attempt to do update or delete using transaction manager that does not support these operations,while doing update.

请建议更新配置单元中的行的方法。

1 个答案:

答案 0 :(得分:0)

在CLI中设置 var isDevBuild = process.argv.indexOf('--env.prod') < 0; var path = require('path'); var webpack = require('webpack'); var ExtractTextPlugin = require('extract-text-webpack-plugin'); var extractCSS = new ExtractTextPlugin('vendor.css'); module.exports = (env) => { return [{ stats: { modules: false }, resolve: { extensions: ['.js'] }, module: { rules: [{ test: require.resolve('jquery'), use: [{ loader: 'expose-loader', options: 'jQuery' },{ loader: 'expose-loader', options: '$' }] }], loaders: [ { test: /\.(png|woff|woff2|eot|ttf|svg)(\?|$)/, loader: 'url-loader?limit=100000' }, { test: /\.css(\?|$)/, loader: extractCSS.extract(['css-loader']) } ] }, entry: { vendor: [ 'aurelia-event-aggregator', 'aurelia-fetch-client', 'aurelia-framework', 'aurelia-history-browser', 'aurelia-logging-console', 'aurelia-pal-browser', 'aurelia-polyfills', 'aurelia-route-recognizer', 'aurelia-router', 'aurelia-templating-binding', 'aurelia-templating-resources', 'aurelia-templating-router', 'bootstrap', 'bootstrap/dist/css/bootstrap.css', 'jquery', 'noty' ], }, output: { path: path.join(__dirname, 'wwwroot', 'dist'), publicPath: '/dist/', filename: '[name].js', library: '[name]_[hash]', }, plugins: [ extractCSS, new webpack.ProvidePlugin({ $: 'jquery', jQuery: 'jquery' }), // Maps these identifiers to the jQuery package (because Bootstrap expects it to be a global variable) new webpack.DllPlugin({ path: path.join(__dirname, 'wwwroot', 'dist', '[name]-manifest.json'), name: '[name]_[hash]' }) ].concat(isDevBuild ? [] : [ new webpack.optimize.UglifyJsPlugin({ compress: { warnings: false } }) ]) }]; } 并不总是有效。 在hive-site.xml中设置此选项并重新启动

set hive.txn.manager=org.apache.hadoop.hive.ql.lockmgr.DbTxnManager

set hive.compactor.initiator.on=true;

ACID需要这些属性。

还要确保您的表格的属性设置为set hive.compactor.worker.threads=1;