草庐IT

count_table

全部标签

excel - 在 Mac 中使用 ODBC 连接从 Excel 查询 Hive 时出现 HortonWorks “Table or view not found”

我将Hortonworks沙箱2.1与ApacheHiveODBC驱动程序2.1和iODBC一起使用。当我使用iODBC软件测试时,ODBC连接成功。但是,当我打开excel并使用Microsoft查询将数据返回到excel电子表格时,我在运行SQLSELECTquery时遇到此错误:[Hortonworks][SQLEngine](31740)Tableorviewnotfound:HIVE.default.tweetsbi.我可以查看数据库中的表,但无法查看其中的内容。每当我按运行时,我都会收到上述错误。我在Excel2011和2016中遇到同样的错误

hadoop - Apache hive : How to Add Column at Specific Location in Table

我想在Hive表的特定位置添加一个新列。当我添加新列时,它会转到最后一个位置。 最佳答案 您需要重新创建表。如果表是外部表并且数据已经包含新列,则发出drop和createtable语句。一般的解决方案是:1.createnew_table...;2.insertoverwritenew_tableselectfromold_table;3.dropold_table;4.alternew_tablerenametoold_table;此外,如果数据文件已经在某个位置包含新列,您可以1.Altertableaddcolumn使用此示

hadoop - Apache Sentry 引用中的 'limited to Hive table data' 是什么意思?

在这里https://www.cloudera.com/documentation/enterprise/5-9-x/topics/sentry_intro.html我们可以读到ApacheSentryOverviewApacheSentryisagranular,role-basedauthorizationmoduleforHadoop.SentryprovidestheabilitytocontrolandenforcepreciselevelsofprivilegesondataforauthenticatedusersandapplicationsonaHadoopclust

hadoop - HIVE - "skip.footer.line.count"在 Impala 中不起作用

我正在将平面文件传送到hdfs。文件的一般结构如下:我在这个数据集之上构建了一个外部配置单元表。下面是我的配置单元ddl:createexternaltableext_test(idstring,namestring,agestring)rowformatDELIMITEDFIELDSTERMINATEDBY','STOREDASTEXTFILELOCATION''TBLPROPERTIES('skip.footer.line.count'='1','skip.header.line.count'='2')当我在HIVE中查询select*fromext_test时;我从外部表中得到了

hadoop - Hive managed table drop 不会删除 HDFS 上的文件。任何解决方案?

从hive中删除托管表时,它与hdfs中的关联文件不会被删除(在azure-databricks上)。我收到以下错误:[Simba]SparkJDBCDriverERRORprocessingquery/statement.ErrorCode:0,SQLstate:org.apache.spark.sql.AnalysisException:Cannotcreatethemanagedtable('`schema`.`XXXXX`').Theassociatedlocation('dbfs:/user/hive/warehouse/schema.db/XXXXX)alreadyexis

sql - 'pool_name' 在 CREATE TABLE 语句中意味着什么?

在CREATETABLE-statement末尾的Impala中您可以按照我的理解设置复制因子:CREATE[EXTERNAL]TABLE[IFNOTEXISTS][db_name.]table_name...[CACHEDIN'pool_name'[WITHREPLICATION=integer]|UNCACHED]无论如何,我有点不明白pool_name指的是什么。这是HDFS中存放数据的路径吗? 最佳答案 不完全是,它实际上是指使用hdfscacheadmin-addPool...命令定义的HDFS池,参见hdfscomman

Hadoop Word Count 工作但不能总结单词

我使用的是Hadoop1.2.1,出于某种原因,我的WordCount输出看起来很奇怪:输入文件:thisisspartathiswasspartahelloworldgoodbyeworldhdfs输出:goodbye1hello1is1sparta1sparta1this1this1was1world1world1代码:publicclassWordCount{publicstaticclassMapextendsMapper{privatefinalstaticIntWritableone=newIntWritable(1);privateTextword=newText();p

hadoop - Hive alter table 语句

ALTERTABLEabcADDPARTITION(year= 2014,month=1,day=1)location'/data/input/abc/year=2014/month=1/day=1';FAILED:ParseExceptionline1:47character' 'notsupportedhere为什么会出现这个错误 最佳答案 出现错误是因为您的分区命令中有空格。year=2014试试看year=2014...假设您的年份列是int。类型。如果它是你需要的字符串year='2014'

hadoop - 集成 Hbase 和 Hive : Register Hbase table

我正在使用包含以下版本的Hbase和Hive的HortonworksSandbox2.0ComponentVersion------------------------ApacheHadoop2.2.0ApacheHive0.12.0ApacheHBase0.96.0ApacheZooKeeper3.4.5...和我正在尝试使用以下查询将我的hbase表注册到配置单元中CREATETABLEIFNOTEXISTSDocument_Table_Hive(keySTRING,authorSTRING,categorySTRING)STOREDBY‘org.apache.hadoop.hiv

hadoop - Hive - 静态分区 - 直接创建分区目录与使用 alter table 语句的区别

下面两个在hive中创建静态分区的语句之间是否存在任何内部/性能差异,我已经尝试了两种方法并且在将数据加载到分区后它们都可以正常工作dfs-mkdir/user/cloudera/sqoop_import/avroData/orders_part/order_month=2014-02;altertableorders_partaddpartition(order_month='2014-02'); 最佳答案 此命令:dfs-mkdir/user/cloudera/sqoop_import/avroData/orders_part/