DeepSeek Harness Plugin Hub

Publish and manage complete Harness Profiles. Discover Plugins for your next setup.

Explore

PluginsPresetsDocsNews

Community

Publish a pluginContactReport an issue

Resources

Plugin Hub on GitHubDeepSeek HarnessSystem statusPrivacy notice
© 2026 DeepSeek Harness Plugin HubPowered byPaxTech

Independent and unofficial. Not affiliated with, authorized by, or endorsed by DeepSeek.

Hdfs — DSH Plugin for DeepSeek Harness
DeepSeek Harness Plugin Hub
ProfilesPluginsCategoriesNewsDocsSign inManage Profiles
ProfilesPluginsCategoriesNewsDocsSign in
← Plugins
H

dsh-hdfs

Hdfs

DeepSeek Harness (dsh) plugin: browse and operate HDFS clusters (HA / Kerberos) through a Rust napi-rs native addon, with a Web client half and agent tools.

The plugin will be installed here. Keep web if you are unsure.

npx -y @deepseek-ai/dsh plugin --profile web add github:awol2005ex3/dsh-hdfs#e9458f2a38a870b374d26749c7e096132cc0ef1c
READMECompatibilityVersions
截图

Compatibility and provenance

Hdfs is published as dsh-hdfs and currently resolves to version 0.1.0. The Hub verifies its manifest and preserves the exact installation source for reproducible installs.

DSH compatibility
*
Runtime surfaces
web
Release source
github
Registry updated
10/14/2026

Versions

0.1.0stable
10/14/2026

Related plugins

Loading related plugins…

Latest
0.1.0
DSH
*
HMR
Process restart
Tree shaking
Safe tree shaking not declared
Unpacked size
Unavailable
Files
Unavailable
Surface
web
License
Apache-2.0
Source
github
GitHub
★ 0
Weekly downloads
0
Last push
10/14/2026
View source ↗
README badge

Click the badge to copy Markdown for your README.

Do you maintain this Plugin?Claim benefit · Priority security scan

Verify the GitHub repository declared in package.json to manage this listing. After you claim it, Hub will prioritize a security scan of the current version and publish the result when it passes.

Claim this Plugin →
Report an issue

Related plugins

More verified plugins in integrations-communication.

Acp App@deepseek-ai/dsh-acp-appThe dsh ACP profile bundle: automation-only JSON-RPC stdio and process lifecycle over dsh-baseAb Publishdsh-ab-publishBrowser-automation publishing tool that logs into and posts to arbitrary websites, in one publishable plugin packageAb Wechat Scrapedsh-ab-wechat-scrape--- description: "The out-of-tree wechat_scrape tool: retrieves WeChat official-account articles, filters promotional blocks, and saves each as a Markdown file, for maintainers of this machine's dsh profiles." kind: "package-reference" ---Ds Botds-botDS Bot: a team of long-lived Bots for DeepSeek Harness, with Main Bots, Bot-to-Bot messages and group chats

README

dsh-hdfs

DeepSeek Harness (dsh) 插件:在 dsh 里浏览与操作 HDFS。Rust (napi-rs + hdfs-native) 直连集群,支持 HA 多 Namenode 与 Kerberos,带 Web 浏览面板与 agent 工具。

  • 宿主半:/api/hdfs/* RPC 路由 + hdfs agent 工具
  • 浏览器半:设置页 HDFS 面板(目录树 / 文件预览 / 集群配置 / Kerberos 登录)
  • 原生半:hdfs-native 0.11 封装,纯 Rust Kerberos(keytab → TGT → ccache)

截图

能力

分类端点(agent 工具 hdfs 的 endpoint 同名)
连接version clusters ping kerberosLogin kerberosStatus
浏览list status read findSpecialDirs
写入write upload download mkdirs createEmpty rename
管理delete chmod getAcl modifyAcl removeAcl

从零构建

npm install                       # 安装依赖(含 @napi-rs/cli)
npm run build:native              # cargo 编 Rust → lib/native/*.node(约 1~2 分钟)
npm run build                     # tsc 编 TS + 包浏览器 bundle
npm run check                     # 三层冒烟:native / plugin / rpc

Windows 上 cargo/napi 需要能正常起子进程的环境(沙箱内会被拦)。 若 .node 正被 dsh 宿主占用导致 copyArtifact 失败:先 cargo build --release 单独编译,再重启宿主(见 AGENTS.md「已知坑」)。

安装进 dsh

npx @deepseek-ai/dsh plugin --profile web add .
# 然后重启宿主(插件集在启动时扫描)

集群配置

配置载体是 profile 的 cordis.patch.yml(也可在「设置 → 插件 → HDFS」里改,volatile 热更新):

- id: hdfs
  config:
    clusters: '[{"id":"prod","url":"hdfs://nameservice1","extraConfig":"{\"dfs.nameservices\":\"nameservice1\",\"dfs.namenode.rpc-address.nameservice1.nn1\":\"nn1-host:8020\",\"dfs.namenode.rpc-address.nameservice1.nn2\":\"nn2-host:8020\",\"dfs.ha.namenodes.nameservice1\":\"nn1,nn2\",\"dfs.namenode.kerberos.principal\":\"hdfs@REALM\",\"dfs.namenode.keytab.file\":\"/path/hdfs.keytab\"}"}]'
    defaultCluster: prod
  • clusters 是 JSON 数组字符串,每项 {id, url, extraConfig};extraConfig 是 Hadoop 配置的 JSON 字符串。
  • url 必须是 hdfs:// 开头;HA 场景填逻辑名(hdfs://nameservice1),地址与 namenode 清单由 extraConfig 提供。
  • 省略 cluster 参数时用 defaultCluster(留空取第一个)。

用户名怎么定(两种互斥路径)

场景用户名来源
extraConfig 里有 dfs.namenode.kerberos.principal + dfs.namenode.keytab.fileprincipal 的 @ 前缀(hdfs@REALM → hdfs)
否则环境变量 HADOOP_USER_NAME → HADOOP_USERNAME → HDFS_USERNAME

配置里没有 user 字段,这是刻意设计。

使用

agent 工具

会话里直接让模型操作,例如:

列出 HDFS 根目录          → hdfs {endpoint:"list", args:{path:"/"}}
读一个文件的前 64KB       → hdfs {endpoint:"read", args:{path:"/tmp/a.csv", maxBytes:65536}}
找全集群的 .Trash 目录     → hdfs {endpoint:"findSpecialDirs", args:{patterns:[".Trash","staging"]}}
Kerberos 登录             → hdfs {endpoint:"kerberosLogin"}

Web 面板

  • 设置 → 插件 → HDFS(0.1.7 的 settings.plugins.tab 插槽);
  • 插槽不可用时回退为左下角浮动「🐘 HDFS」启动器。

面板功能:集群下拉、路径面包屑、目录表格(权限/属主/大小/时间)、文本预览、目录汇总开关、Kerberos 登录与状态、集群 JSON 编辑与校验。

Kerberos 说明

  1. 首次操作前先 kerberosLogin(面板按钮或工具端点):纯 Rust kinit-kt 用 keytab 取 TGT,写入 %USERPROFILE%\dsh_hdfs_ccache 并设置进程级 KRB5CCNAME。
  2. ccache 是进程级状态:宿主重启后要重新登录。
  3. SASL/GSS 协商由 hdfs-native 经 libloading 调用系统 GSS 库:
    • Linux:需要 libgssapi_krb5.so.2(MIT Kerberos / Heimdal)
    • Windows:需要 gssapi_krb5.dll(MIT KFW),放在 .node 同目录或系统路径即可
    • 缺失时报 GSSAPI error: ... GSS_S_BAD_MECH ...
  4. KRB5CCNAME 若被其他工具设成 API:krb5cc 这类非文件型值,本插件会忽略它并改用固定文件路径 (API: 型 ccache hdfs-native 解析不了)。

安全边界

  • 插件 RPC 走 dsh 既有鉴权与会话隔离,connection.fetch 的 exact 路由不绕过 /api 的信任栅栏。
  • keytab 路径是配置项而非密钥本身;keytab 文件不随插件分发,也不入库(.e2e-cluster.local.json 已 gitignore)。
  • 删除默认进 HDFS 回收站(delete 带 trash:true)。

开发

仓库结构、已知坑与验证矩阵见 AGENTS.md。

rust/           Rust napi 封装(hdfs-native)
src/            TS:宿主半 index/rpc/tool/settings + 浏览器半 client
scripts/        wrap-client(bundle 外壳)+ 三层冒烟 + 真实集群 e2e
lib/            构建产物(gitignore)

许可

Apache-2.0