← Back to Pull requests

[ZEPPELIN-6770] Update HbaseInterpreter to a subclass of ShellInterpr… #5613

Open
unknown opened this pull request with 188 lines diff across 2 files
View on GitHub
unknown unknown commented on Nov 11, 2026 01:01 UTC
Author

What is this PR for?


Refactor HbaseInterpreter to extend ShellInterpreter instead of reimplementing shell process management from scratch.

The previous implementation duplicated a lot of logic that ShellInterpreter already provides: writing each paragraph to a temp script file, constructing a DefaultExecutor with a PumpStreamHandler, managing an ExecuteWatchdog, implementing cancel() and a FIFO scheduler, and cleaning up temp files. This patch deletes all of that (about 150 lines) and reduces HbaseInterpreter to the HBase-specific part only: resolving HBASE_HOME and turning a paragraph into one hbase shell invocation.

The main motivation is Kerberos support. ShellInterpreter extends KerberosInterpreter, so by subclassing it the HBase interpreter now inherits the same, already-tested Kerberos handling for free: zeppelin.shell.auth.type=kerberos, zeppelin.shell.keytab.location, zeppelin.shell.principal, and the periodic re-kinit on ticket expiry. No HBase-specific Kerberos code is required, and the same approach can be reused by any other shell-backed interpreter.

What type of PR is it?


Improvement / Refactoring

Todos

What is the Jira issue?

[ZEPPELIN-6770]

How should this be tested?


This update has been covered by UTs.
./mvnw test -pl hbase -am

Screenshots (if appropriate)

Questions:


Does the license files need to update? No
Is there breaking changes for older versions? No
  • Does this needs documentation? Yes. The doc has already been updated.
  • Diff: 188 lines (+141 / -47) across 2 files Reviewer: jongyoul Review duration: 33067m
    All Vouch review confidence checks passed
    Residual risk 0.20 = Change Risk (0.36) × (1 − Review Confidence (0.43)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.36 · 188 lines diff across 2 files
    0.36
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.02 · 1 substantive comment(s)
    0.02
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    42%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    Groq Risk Narration
    AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
    Model 1 · Change Risk Attribution
    SHAP Weights
    Shallow Review Depth shallow_review_depth
    0.344
    Diff Size diff_size
    0.314
    Real PR Conversation Timeline
    1 comments
    "Review active on #5613"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 43.0% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 35.8% (MEDIUM) · Higher = larger blast radius
    35.8%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 43.0% · Lower = rushed or shallow review
    43.0%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 20.4% · Safe to merge
    20.4%