草庐IT

column_name

全部标签

scala - HDFS : java. io.FileNotFoundException : File does not exist: name. _COPYING

我正在使用Scala处理SparkStreaming。我需要使用此行从HDFS目录动态读取.csv文件:vallines=ssc.textFileStream("/user/root/")我使用以下命令行将文件放入HDFS:hdfsdfs-put./head40k.csv它适用于相对较小的文件。当我尝试使用更大的一个时,出现此错误:org.apache.hadoop.ipc.RemoteException(java.io.FileNotFoundException):Filedoesnotexist:/user/root/head800k.csv._COPYING我能理解为什么,但我不

scala - 星火笔记本 : How can I filter rows based on a column value where each column cell is an array of strings?

我有一个巨大的数据框,其中“类别”列具有企业的各种属性,即是否是餐厅、洗衣服务、迪斯科舞厅等。我需要的是能够.filter数据框,以便可以看到包含Restaurant的每一行。这里的问题是“类别”是一个字符串数组,其中一个单元格可能类似于:“餐馆、食物、夜生活”。有任何想法吗?(Scala[2.10.6]Spark[2.0.1]Hadoop[2.7.2])我已经尝试过SQL风格的查询,例如:valcountResult=sqlContext.sql("SELECTbusiness.neighborhood,business.state,business.stars,business.c

hadoop - hive insert overwrite table with inner sub query of count of columns 作为结果

你好,我在源表“状态表”下面有datestatusname2017-06-22true1.tar2017-06-22true2.tar2017-06-22false3.tar2017-06-22true4.tar2017-06-22false5.tar2017-06-21false6.tar2017-06-21false6.tar2017-06-21false6.tar2017-06-21true6.tar我在目标表列下面有预期的数据TrueFalseTotalDate3252017-06-221342017-06-21我在下面写了查询将数据从源表加载到目标表,但它说表达式不在GROU

hadoop - 我不明白这个示例代码中的 jar 和 class-name 是什么

我正在尝试使用sqoop合并hdfs上的增量数据,这是我在googlehttps://developer.ibm.com/hadoop/2017/02/28/typical-scenario-sqoop-incremental-import-merge/上找到的示例代码我不明白那里的jar文件和类名是什么,我应该提供哪个jar文件的路径以及什么类名?有人可以帮我理解吗?谢谢。sqoopmerge--new-data/apps/hive/warehouse/student/part-m-00000--onto/apps/hive/warehouse/student/part-m-0000

hadoop - pig : Counting the occurence of a grouped column

在此rawdata我们有棒球运动员的信息,架构是:name:chararray,team:chararray,position:bag{t:(p:chararray)},bat:map[]使用以下脚本,我们能够列出球员以及他们踢过的不同位置。我们如何计算有多少球员打过一个特定的位置?例如。有多少球员处于“指定击球手”位置?一个位置不能在一个玩家的position包中出现多次。示例数据的Pig脚本和输出如下所示。--pigscriptplayers=load'baseball'as(name:chararray,team:chararray,position:bag{t:(p:chara

c++ - : No module named _hdfs_*

我能够毫无错误地构建和安装Pydoop,因此,例如,我可以执行以下操作:>>>importpydoop>>>pydoop.__version__'0.10.0'但是,当我尝试导入主要的Pydoop模块(例如pipes或hdfs)时,我遇到了ImportError:>>>importpydoop.hdfsTraceback(mostrecentcalllast):File"",line1,inFile"pydoop/hdfs/__init__.py",line79,infromfsimporthdfs,default_is_localFile"pydoop/hdfs/fs.py",lin

hadoop - 执行以下 Hive 查询 : SELECT COUNT(*) FROM TABLE; for a table with 8bn rows/40 columns/400Gb? 的大概数字是多少

执行以下Hive查询的大概数字是多少:SELECTCOUNT(*)FROMTABLE;对于下表:行数:~80亿列数:40,各种大小的int、double和stringHDFS上的大小:~400Gb我想将任何大概数字与真实数字进行比较,以查看系统配置是否正确。如果我错过了一些重要的事情,我深表歉意,我是Hive和Hadoop的新手。此外,如果机器数量也按比例增加,执行时间是否会与行数成线性比例? 最佳答案 提供大概数字是不可能的。但是我们可以列出影响因素:集群中配置的MapTask数量block大小(决定将使用的映射器的数量)执行时间

git clone:SSL: no alternative certificate subject name matches target host name

gitclone时的常见错误:fatal:unabletoaccess‘https://ip_or_domain/xx/xx.git/’:SSL:noalternativecertificatesubjectnamematchestargethostname‘ip_or_domain’解决办法:disablesslverifygitconfig--globalhttp.sslVerifyfalseremote:HTTPBasic:Accessdeniedremote:Youmustuseapersonalaccesstokenwith‘read_repository’or‘write_repo

hadoop - 语义异常 [错误 10007] : Ambiguous column reference _c1

我在配置单元查询中使用四级嵌套时遇到问题。以下是我正在执行的查询-SELECT*,SUM(qtod.amount)OVER(PARTITIONBYqtod.id,qtod.year_begin_dateORDERBYqtod.tran_date)FROM(SELECT*,SUM(mtod.amount)OVER(PARTITIONBYmtod.id,mtod.quarter_begin_dateORDERBYmtod.tran_date)FROM(SELECT*,SUM(wtod.amount)OVER(PARTITIONBYwtod.id,wtod.month_begin_dateO

HarmonyOS Developer之组件讲解--Button、Slider、Column和Row组件

Butoon:按钮组件1.声明Button组件,label是按钮文字如果带label,则按钮上的文字或图案需要Button内部的组件实现Button(label?:ResourceStr)①文字型按钮 Button('点我')②自定义按钮,在Button内嵌套其他组件Button(){ Image($r('app.media.search')).width(20).margin(10)}2.添加属性和事件Button('点我') .width(100) .height(30) .type(ButtonType.Normal)//按钮类型 .onClick(()=>{ //处理点击事件 })