summaryrefslogtreecommitdiff
path: root/internal/clients/maprclient.go
AgeCommit message (Collapse)Author
2026-03-13task 57753d28: add interactive query controlPaul Buetow
2026-03-13task 4abe7505: reset dmap generation statePaul Buetow
2026-03-13task 399: add client session spec scaffoldingPaul Buetow
2026-03-10Introduce client runtime boundariesPaul Buetow
2026-03-08task: replace looped time.After with tickers (task 378)Paul Buetow
2026-03-02mapr client: replace runtime panics with errorsPaul Buetow
Task: 4e6d7744-3f5c-4880-9e5d-368ece96470d
2026-02-03Add SSH agent key selection and fix MapReduce outfile handlingPaul Buetow
This commit adds two major features and fixes: 1. SSH Agent Key Selection: - Add --agentKeyIndex flag to select specific SSH agent key (0-based) - Solves "too many authentication failures" with multiple SSH keys - Default -1 uses all keys (backwards compatible) - Available in dtail, dcat, dgrep, dmap commands 2. MapReduce Outfile Fixes: - CSV files now written at every interval, not just on exit - Proper signal handling (SIGTERM/SIGINT) with graceful shutdown - 5-second grace period for cleanup before force exit - Fixes issue where outfile remained as .tmp during execution Usage: dtail --servers host --agentKeyIndex 0 --query '...' outfile results.csv This is particularly useful with YubiKey/hardware tokens where many keys are loaded in the SSH agent, and for monitoring MapReduce results in real-time as they're computed. Co-authored-by: Cursor <cursoragent@cursor.com>
2025-07-04fix: resolve MapReduce turbo mode issues and serverless processingPaul Buetow
- Fix serverless MapReduce to pass options with map command for proper mode detection - Prevent raw lines from being sent to client during MapReduce operations - Only use turbo mode for cat/grep/tail when no aggregate is present - Fix race conditions in TurboAggregate with proper synchronization - Add SafeAggregateSet wrapper for thread-safe operations - Fix parser selection to use correct parser names - Add comprehensive unit tests for turbo aggregate functionality This ensures MapReduce operations in both turbo and non-turbo modes produce identical results and fixes serverless mode processing. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
2024-03-29only rename .csv.tmp to .csv when the final result was writtenPaul Buetow
2024-03-29lint warningsPaul Buetow
2021-11-04Correct mapr stdout newlinesPaul Buetow
2021-10-21backport mapreduce reporter rampup from masterPaul Buetow
2021-10-10add another dmap test - reading 100 source files at oncePaul Buetow
fix a data race when reading multiple files on one server from the same session at once
2021-10-10vetting and linting and some code restylingPaul Buetow
2021-10-09refactorPaul Buetow
2021-10-05more on thisPaul Buetow
2021-10-03add dmap testsPaul Buetow
2021-10-02move args to config packagePaul Buetow
logger package rewrite as dlog
2021-10-02add spartan modePaul Buetow
2021-10-02bugfix: dmap skipped the last couple of mapreduce linesPaul Buetow
2021-10-02limit mapreduce table output to 10 rows by defaultPaul Buetow
2021-10-02mapreduce tables are in colors now tooPaul Buetow
2021-08-22introduces the protocol packagePaul Buetow
2020-12-26initial quiet switchPaul Buetow
2020-12-26rename spartan to quietPaul Buetow
2020-12-26initial spartan mode supportPaul Buetow
2020-12-08merge developPaul Buetow
2020-09-10printing client stats every other second only if the connection count has ↵Paul Buetow
changed or when SIGUSR1 or SIGINFO recieved
2020-09-04fix regex bugPaul Buetow
2020-09-04server side support for new regex packagePaul Buetow
2020-08-13bump up version to 3.0.0. can run continuous background mapreduce queries, ↵v3.0.0Paul Buetow
useful for log file monitorig for example. breaking protocol change which allows to mapreduce aggreate messages containing the default field separator |. add of more unit tests. add logformat mapreduce query keyword. add set mapreduce clause support and support to evaluate built-in functions such as md5sum() and maskdigits().
2020-07-03refactor mapr clientPaul Buetow
2020-03-07add support to run mapreduce queries on generic log lines, e.g. count all ↵Paul Buetow
log lines containing a certain string, such as "ERROR"
2020-03-04can tail probe with a given timeout and then write a mapreduce resultPaul Buetow
2020-02-07Introduce drun command, refactor code to use context packagePaul Bütow
2020-01-21Move commands to cmd/ and move internal dependencies to internal/Paul Bütow