首页 \ 问答 \ HDFS上的文件权限(File permissions on HDFS)

HDFS上的文件权限(File permissions on HDFS)

我找到很多指导用户如何在HDFS上“创建用户/组”的教程。 我想知道在HDFS环境下,“所有者”或“组”是什么意思。

而且,当它在HDFS上时,谁是文件的所有者或组用户? 一些消息来源称这是hdfs本身,而hdfs 一些人则表示它是客户端进程的用户。

我想知道,所以有一个明确的方式来理解和修复permission denied错误。


I find a lot of tutorials that guide users on how to "create users/groups" on HDFS. I wonder what an "owner" or "group" means in the context of HDFS.

Moreover, who is the owner or group user of a file when it is on HDFS? Some sources say it is hdfs itself, whereas some say it is the user of the client process.

I want to know so that there is a definitive way to understand and fix permission denied errors.


原文:https://stackoverflow.com/questions/50638277
更新时间:2022-10-29 19:10

最满意答案

一个好的解决方法是:

bool SomeOtherFunction(int arg1, out int argOut){ ... }

bool SomeOtherFunction(int arg1)
{
    int dummyArgOut;
    return SomeOtherFunction(arg1, dummyArgOut);
}

我甚至会说它是最好的解决方法。


A good workaround is:

bool SomeOtherFunction(int arg1, out int argOut){ ... }

bool SomeOtherFunction(int arg1)
{
    int dummyArgOut;
    return SomeOtherFunction(arg1, dummyArgOut);
}

I'd even say its the best workaround.

相关问答

更多
  • 基本上,错误是编译器所说的错误。 作为第一个参数,您传递的是data[i].left ,它是short int类型,而需要指向struct afreq的指针。 无论如何编译它的唯一原因是因为默认情况下gcc允许int和指针之间的转换(但是你想要这样做的原因并不多)。 如果我理解你正在尝试做什么 - 你想在一个似乎是树的地方递归地调用你的“字典”函数。 问题是该结构并没有很好地定义。 您正在尝试使用它们的值“索引”树的节点(这是我对data[i].left ),但是没有办法在“ 'a' ”之间“建立链接”,并 ...
  • 只是取消引用它: func( *object ); Just dereference it: func( *object );
  • 那就是lambda的工作方式。 试试这个: while (true) { if (server.Pending() && playerCount < maxPlayers) { Console.WriteLine("Found client"); clients[playerCount] = server.AcceptTcpClient(); // Get client connection //When one player joins, t ...
  • 我已经编写了soap_parser类来阅读制作SOAP Message,它非常直接实现,只需按照步骤操作即可完成。 步骤1:使用以下代码创建一个.h文件soap_parser.h并进行适当的域更改 #error Set Your Request Domain & Webservice name #define DOMAIN_URL @"http://yourDomain.com/WebService/" #define SERVICE_URL DOMAIN_URL@"/iphoneser ...
  • 看起来linux不支持I_SENDFD 。 注释表明I_SENDFD在文档中,但实际上不受支持,并导致您遇到的错误消息。 STREAMS的维基百科条目声明linux内核对流没有任何支持。 维基百科条目确实指向了几个可用于添加流支持的第三方软件包,但LiS尚未移植到2.6内核,而OpenSS7在4年内没有任何活跃的开发。 但是,linux确实支持类似的东西。 此机制使用特殊消息类型SCM_RIGHTS通过sendmsg在UNIX域套接字上传递文件描述符,并从recvmsg 。 可以通过简单的Web搜索找到示例 ...
  • 这对我来说非常好。 注意修订,将ra2decimal更改为dec2decimal 。 Option Explicit Sub testDec2Decimal() MsgBox dec2decimal(1, 1, 1) End Sub Public Function dec2decimal(Deg As Integer, Min2 As Integer, Sec2 As Integer) As Double Dim Dec As Double Dec = 0 If Deg >= ...
  • 双参数operator()应该可以解决这个问题: fOptions.add_options() ("progressBar,b", "Progress bar."); The two-parameter operator() should do the trick: fOptions.add_options() ("progressBar,b", "Progress bar.");
  • 一个好的解决方法是: bool SomeOtherFunction(int arg1, out int argOut){ ... } bool SomeOtherFunction(int arg1) { int dummyArgOut; return SomeOtherFunction(arg1, dummyArgOut); } 我甚至会说它是最好的解决方法。 A good workaround is: bool SomeOtherFunction(int arg1, out int a ...
  • 既然你做了这个.. $ms_id = implode(",", $id); 你的$ms_id现在是一个字符串,你在下面这样做 foreach ($ms_id as $id) { ..你不能循环一个字符串,这就是这个问题背后的原因。 循环遍历$id变量,因为它是一个数组.. foreach ($id as $idvalue ) { //do something } Since you have done this.. $ms_id = implode(",", $id); Your $ms_id ...
  • 您正在将参数传递给randomContestant但您没有在该函数中使用它。 你也没有删除选中的参赛者。 尝试这样的事情: const contestants = ["Alejandro", "Amy", "AnnMaria", "B", "Beardo", "Beth", "Blainley", "Brick", "Bridgette", "Cameron", "Cody", "Courtney", "Dakota", "Dave", "Dawn", "DJ", "Duncan", "Ella", "Ev ...

相关文章

更多

最新问答

更多
  • 获取MVC 4使用的DisplayMode后缀(Get the DisplayMode Suffix being used by MVC 4)
  • 如何通过引用返回对象?(How is returning an object by reference possible?)
  • 矩阵如何存储在内存中?(How are matrices stored in memory?)
  • 每个请求的Java新会话?(Java New Session For Each Request?)
  • css:浮动div中重叠的标题h1(css: overlapping headlines h1 in floated divs)
  • 无论图像如何,Caffe预测同一类(Caffe predicts same class regardless of image)
  • xcode语法颜色编码解释?(xcode syntax color coding explained?)
  • 在Access 2010 Runtime中使用Office 2000校对工具(Use Office 2000 proofing tools in Access 2010 Runtime)
  • 从单独的Web主机将图像传输到服务器上(Getting images onto server from separate web host)
  • 从旧版本复制文件并保留它们(旧/新版本)(Copy a file from old revision and keep both of them (old / new revision))
  • 西安哪有PLC可控制编程的培训
  • 在Entity Framework中选择基类(Select base class in Entity Framework)
  • 在Android中出现错误“数据集和渲染器应该不为null,并且应该具有相同数量的系列”(Error “Dataset and renderer should be not null and should have the same number of series” in Android)
  • 电脑二级VF有什么用
  • Datamapper Ruby如何添加Hook方法(Datamapper Ruby How to add Hook Method)
  • 金华英语角.
  • 手机软件如何制作
  • 用于Android webview中图像保存的上下文菜单(Context Menu for Image Saving in an Android webview)
  • 注意:未定义的偏移量:PHP(Notice: Undefined offset: PHP)
  • 如何读R中的大数据集[复制](How to read large dataset in R [duplicate])
  • Unity 5 Heighmap与地形宽度/地形长度的分辨率关系?(Unity 5 Heighmap Resolution relationship to terrain width / terrain length?)
  • 如何通知PipedOutputStream线程写入最后一个字节的PipedInputStream线程?(How to notify PipedInputStream thread that PipedOutputStream thread has written last byte?)
  • python的访问器方法有哪些
  • DeviceNetworkInformation:哪个是哪个?(DeviceNetworkInformation: Which is which?)
  • 在Ruby中对组合进行排序(Sorting a combination in Ruby)
  • 网站开发的流程?
  • 使用Zend Framework 2中的JOIN sql检索数据(Retrieve data using JOIN sql in Zend Framework 2)
  • 条带格式类型格式模式编号无法正常工作(Stripes format type format pattern number not working properly)
  • 透明度错误IE11(Transparency bug IE11)
  • linux的基本操作命令。。。