Questions tagged [knox-amazon-s3-client]

Use this tag for questions related to the js library knox: a node.js plugin for Amazon S3

This open source project (hosted on github) is an client for

Main features (as described on the project site) :

  • Familiar API (client.get(), client.put(), etc.)
  • Very Node-like low-level request capabilities via http.Client
  • Higher-level API with client.putStream(), client.getFile(), etc.
  • Copying and multi-file delete support
  • Streaming file upload and direct stream-piping support

Knox can be installed with npm install knox

88 questions
0
votes
1 answer

Request Packet Generation Code in NS2 Tcl/Tk

for {set i 0} {$i < $num_nodes} {incr i} { for {set j 0} {$j < 10} {incr j} { $ns at [expr 7.2+[expr rand()*3.0]] "$n($i) send_message 10 1 {[expr round([expr rand()*100000])]:[expr round([expr rand()*$numdata1])]:1:-1:-1} $MESSAGE_PORT" …
0
votes
1 answer

How to list files in amazon s3 bucket with in the folder using knox and nodejs

I want to list file in my s3 bucket with in the folder, my bucket structure is /> folder_1 a_bucket -> folder_2 \> folder_3 I want list files in folder_1 only
byteC0de
  • 5,153
  • 5
  • 33
  • 66
0
votes
1 answer

Meteor Fiber issue with callback in knox

I'm having difficulty understanding where exactly I should implement wrapAsync/bindEnvironment in the code I'm working on. I am making a call to a url with http/knox and uploading it to my S3 bucket which works, but when I try to call the function…
Jtanacredi
  • 53
  • 6
0
votes
1 answer

How to remove a file in S3 Bucket with knox?

I need to remove a file in S3 Bucket with Knox library. I found some examples that explain how to upload a file but I was not able to find any examples that explain how to remove a file. Can you provide me with an example code? Thanks.
saeta
  • 4,048
  • 2
  • 31
  • 48
0
votes
1 answer

OPT Files retrieved from S3 AWS are broken

I can successfully retrieve my OPT file from AWS using Knox.. but when I go to use the file it is broken. I believe this is an encoding issue.. but honestly I'm not sure. The end file size is larger than the files actual size. Below is a simplified…
Quinn Keaveney
  • 1,248
  • 1
  • 17
  • 39
0
votes
0 answers

How can i create bucket with knox on S3?

enter link description here iwanna create bucket with knox but dont find it . Anyone can do it?
ERKA
  • 23
  • 4
0
votes
1 answer

hitting knox rest services using java?

I am new to apache knox. I have configured knox and started playing with it using command line. So Now I want to hit knox webservices using java httpclient. Is there any example or guide for this? Or there is only groovy script for this…
user3313379
  • 459
  • 10
  • 21
0
votes
1 answer

Knox error : java.lang.reflect.InvocationTargetException

I am getting following error while installing and setup of Knox on Hortonworks Hadoop 2.1.5. I have already installed java jdk-7u65-linux-x64.tar.gz SGSCAI0081:~ # su -l knox -c '/usr/lib/knox/bin/gateway.sh…
0
votes
1 answer

Not sending authorization header from Angular to AWS

I'm trying to build a web app that should fetch a pre-signed Amazon S3 URL, and then upload a file to that URL using Knox. However S3 gives me this error when I try to access my bucket InvalidArgumentOnly one auth…
0
votes
2 answers

How to upload all files from directory to s3

I am writing node js script which should send images from directory '/images/', to the amazon s3. I know the knox is very good library, but how can I upload all files from directory, with the old file names. I can probably use fs module, get all…
Slow Harry
  • 1,857
  • 3
  • 24
  • 42
0
votes
1 answer

http 045: method not allowed error while loading data to hadoop cluster using knox gateway-0.3.0

I am trying to list data present in hadoop cluster and also copy the data using curl command but i am getting http 405 error. Below is the command i am using. curl -iku guest:guest-password -L -T samples/hadoop-examples.jar \ -X PUT …
0
votes
1 answer

Downloading S3 file as attachment using knox/node.js passthrough

I am trying to get downloading files from S3 via node/knox working. My javascript call is working and successfully downloads the file, but I want to download it as an attachment. I have tried setting the headers to 'Content-disposition':…
Matt Way
  • 32,319
  • 10
  • 79
  • 85
0
votes
1 answer

Knox S3 - NodeJS/ExpressJS Error: socket hang up

I encountered the error below with NodeJS module for Amazon S3: Knox events.js:72 throw er; // Unhandled 'error' event ^ Error: socket hang up at SecurePair.error (tls.js:934:23) at CleartextStream.read [as _read]…
JR Galia
  • 17,229
  • 19
  • 92
  • 144
0
votes
1 answer

Setting proxy server for connections in Knox

I am using LearnBoost/knox to connect to Amazon S3 but my machine is using a proxy server. I have set an environment variable http_proxy and https_proxy but Knox is not using that. How do you get Knox to communicate through a proxy server.
Dave Green
  • 151
  • 9
0
votes
1 answer

Amazon S3 Query String Authentication Cancels The Download?

I'm building an app in NodeJS that stores files in Amazon S3 using the Knox S3 client. Everything works well for uploading files, moving files around, etc. Now I want to use the Query String Authentication mechanism to allow direct downloads of the…