About This Page
This page is part of the Azure documentation. It contains code examples and configuration instructions for working with Azure services.
Bias Analysis
Bias Types:
⚠️
windows_first
⚠️
powershell_heavy
⚠️
missing_linux_example
⚠️
windows_tools
Summary:
The documentation demonstrates a strong Windows bias: all setup and file manipulation commands use Windows Command Prompt (cmd) syntax, file paths are Windows-style, and Notepad is used as the default editor. The troubleshooting section provides only PowerShell solutions for line ending issues. There are no equivalent Linux/bash commands or instructions, despite HDInsight clusters being Linux-based.
Recommendations:
- Provide parallel Linux/bash command examples for all steps (e.g., mkdir, cd, rm -rf, nano/vim for editing files).
- Include Linux file path examples alongside Windows paths.
- Offer troubleshooting steps using Linux tools (e.g., dos2unix, sed) for line ending issues.
- State explicitly that the instructions apply to both Windows and Linux, and indicate which commands are for which OS.
- Consider presenting Linux examples first, given that HDInsight clusters are Linux-based.
Create pull request
Flagged Code Snippets
IF NOT EXIST C:\HDI MKDIR C:\HDI
cd C:\HDI
cd ExampleUDF
rmdir /S /Q "src/test"
notepad src/main/java/com/microsoft/examples/ExampleUDF.java
# Set $original_file to the Python file path
$text = [IO.File]::ReadAllText($original_file) -replace "`r`n", "`n"
[IO.File]::WriteAllText($original_file, $text)