Namenode恢复,namenode恢复如何工作?(Namenode recovery, How does namenode recovery works?)
在
hadoop
生态系统中我们有NameNode
和SecondaryNameNode
,NameNode
负责管理集群中可用的所有数据,所以我的问题是当NameNode
关闭生态系统如何替换并用其他NameNode
恢复它?In
hadoop
ecosystem we haveNameNode
andSecondaryNameNode
,NameNode
is responsible to managing all data available in cluster, So my question is whenNameNode
goes down how ecosystem replace and recover it with otherNameNode
?
原文:https://stackoverflow.com/questions/17387477
最满意答案
嗯..你实时检查滚动条。
Inspect Code
仅在请求时运行(或在提交之前 )。我找不到任何类似请求的现有机票 - 如果您愿意,您可以通过https://youtrack.jetbrains.com/issues/WI自行提交。
我找到的最好的是这一个: https : //youtrack.jetbrains.com/issue/IDEA-120207
您可以为该
Code | Inspect Code...
分配任何方便的快捷方式Code | Inspect Code...
Settings/Preferences | Keymap
Code | Inspect Code...
Settings/Preferences | Keymap
- 它不是理想的,但是体面的解决方法。如果您打开了
Inspection Results
工具窗口,则可以跳转到它并使用Rerun
操作(在Windows上Ctrl+F5
)
Well .. you have inspections on the scrollbar in real time. The
Inspect Code
is run on request only unfortunately (or before Commit).I could not find any existing ticket for similar request -- if you wish, you can submit one yourself at https://youtrack.jetbrains.com/issues/WI
The best I have found is this one: https://youtrack.jetbrains.com/issue/IDEA-120207
You can assign any convenient to you shortcut to that
Code | Inspect Code...
inSettings/Preferences | Keymap
-- it's not ideal but decent workaround.If you have
Inspection Results
tool window opened, you could jump into it and useRerun
action (Ctrl+F5
here on Windows)
相关问答
更多-
其实这是可能的。 这个想法是记录一个非常简单的宏,它可以选择所有行( Ctrl + A ),格式( Ctrl + Alt + L ),全部取消选择(向上和向下箭头)并保存文件(Ctrl + S)宏到Ctrl + S。 免费Ctrl + S更改“全部保存”的键盘快捷键 打开文件>设置; 搜索“键盘映射”并打开它; 搜索“全部保存”并双击“全部保存”操作; 选择“删除Ctrl + S”; 再次双击“全部保存”并选择“添加键盘快捷方式”; 选择“Ctrl + Alt + Shift + S”作为第一笔。 确认并退 ...
-
PHPStorm检查规则(PHPStorm inspection rules)[2023-07-19]
要关闭单行中的错误,请按F2键以执行错误。 然后按Alt-Enter调出检查菜单,然后从弹出菜单导航到错误menU(通常可以通过简单地按下右箭头完成)并选择“Suppress for statement”。 注释将出现在您的代码中以抑制该语句的错误。 评论示例:像/** @noinspection Php[...]Inspection */ 如果您没有将该库包含在项目中,可以将其添加到“外部库”中,并且所有类和对象都将被索引并可用于项目。 要做到这一点,请在项目窗口中的任意位置点击并按F4。 或者转到项目窗 ... -
禁用Settings/Preferences | Editor | General | Trim trailing spaces on Save Settings/Preferences | Editor | General | Trim trailing spaces on Save Settings/Preferences | Editor | General | Trim trailing spaces on Save选项Settings/Preferences | Editor | General ...
-
如何在PHPStorm / WebStorm中保存时配置ESLint自动修复?(How to configure ESLint autofix on save in PHPStorm/WebStorm?)[2023-02-04]
根据这篇文章,设置应如下: 文件类型:任何 范围:项目文件 程序:./ node_modules / .bin / eslint(如果需要,指定完整路径) 参数: - fix $ FilePath $ 要刷新的输出路径:$ FileDir $ According to this article, settings should be as the following: File type: Any Scope: Project files Program: ./node_modules/.bin/eslin ... -
好的,我刚刚发现了。 如果我双击远程主机侧边栏中的文件,则会像右侧那样打开文件。 如果我双击项目边栏中的文件,文件就会像左边那样打开。 OK I just found out. If I double click on file in the remote host sidebar, the file is opened like in the right. If I double click on file in the project sidebar, the file is opened like i ...
-
inspect.getfile()vs inspect.getsourcefile()(inspect.getfile () vs inspect.getsourcefile())[2022-04-05]
getfile() : 返回定义了对象的(文本或二进制)文件的名称。 如果对象是内置模块,类或函数,则会因TypeError而失败。 getfile()也返回pyc(编译)文件,其中getsourcefile()只返回源文件。 getfile(): Return the name of the (text or binary) file in which an object was defined. This will fail with a TypeError if the object is a bui ... -
不,WebStorm中没有这样的功能; 请投票支持WEB-9557请注意,Chrome中加载的页面目前有一个“Inspect in WebStorm”上下文菜单操作。 但是此操作只会启动当前在浏览器中加载的页面的调试会话。 从理论上讲,它还应该在调试器元素选项卡中显示页面 - 但它没有( http://youtrack.jetbrains.com/issue/WEB-10822 ) No, there is no such feature in WebStorm; please vote for WEB-9 ...
-
PhpStorm检查代码保存(PhpStorm Inspect Code On Save)[2023-06-14]
嗯..你实时检查滚动条。 Inspect Code仅在请求时运行(或在提交之前 )。 我找不到任何类似请求的现有机票 - 如果您愿意,您可以通过https://youtrack.jetbrains.com/issues/WI自行提交。 我找到的最好的是这一个: https : //youtrack.jetbrains.com/issue/IDEA-120207 您可以为该Code | Inspect Code...分配任何方便的快捷方式 Code | Inspect Code... Settings/Pre ... -
在PhpStorm中使用Git(Using Git in PhpStorm)[2021-04-07]
您是否检查过特定文件夹是否启用了git? 转到文件>设置>版本控制,并确保您的项目文件夹具有git。 Did you check if git is enabled for specific folder? Go to File > settings > Version control and make sure your project folder has git. -
如何在没有提示的情况下阻止PhpStorm在退出时保存文件?(How to prevent PhpStorm to save file on exit without prompt?)[2023-11-06]
看看这个: http : //devnet.jetbrains.net/thread/291434 “不要退出时自动保存”是严格的“不会修复”团队。 您不能使用制表符星号,因为编辑器中的文件只是从磁盘加载而没有未保存的更改。 没有任何意义。 如果您需要随时间保留更改集,则应该考虑使用源代码控制。 本地git存储库将为您提供所需的所有功能。 只需安装git,执行“Version Control | Git Init”,你就可以获得很好的变更集,编辑器中的chages,每个更改和文件的差异。 Check thi ...