Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8160587
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T18:17:24+00:00 2026-06-06T18:17:24+00:00

I am trying to access hive table and dump the result back into text

  • 0

I am trying to access hive table and dump the result back into text file. And when I try to do this, I always get the permission denied? Is there something I am missing?

bash-3.00$ 'select * from ATTRIBUTE_DATA_REALTIME LIMIT 10' > test.txt
bash: test.txt: Permission denied

And what permission I need in this case? Or my query is wrong?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T18:17:27+00:00Added an answer on June 6, 2026 at 6:17 pm

    Firstly — you’re missing a hive -e. With what you have now, Bash will look for a program named select * from ATTRIBUTE_DATA_REALTIME LIMIT 10!

    But as for the permissions issue, there are two possibilities:

    • If test.txt already exists, then you need to run your command as a user that has permission to write to the file. (Use ls -l test.txt to see who owns the file and what the permissions on it are.)
    • If test.txt doesn’t already exist, then you need to run your command as a user that has permission to write to the directory containing the file, i.e., the current directory. (Use ls -ld . to see who owns the directory and what the permissions on it are.)
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

When trying to access data-onload using $(#index).data(onload) I get back 'undefined' : <script type=text/html>
I am trying to access a file for xml parsing with this: InputStream inputStream
im trying to access my localhost i.e. localhost/app and trying to get back some
I am trying to access all the data from database listOfFolder table folder and
I am trying for sqoop import from SQL Server into Hive. When I execute
i cannot get current content page html. when i trying access from script in
I am trying to access a result in a dictionary held in a Python
When trying to access the following URL, I get a 404 error page :
I am trying to access and change a array from a different class file.
I am trying access a REST API. I can get it working in Curl/REST

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.