Questions tagged [writable]

121 questions
1
vote
2 answers

Hadoop Writable for Date/Calendar

I'm looking to implement a custom hadoop Writable class where one of the fields is a time stamp. I can't seem to find a class in the hadoop libraries (e. g. a Writable for Date or Calendar) which would make this easy. I'm thinking of creating a…
ChaseMedallion
  • 20,860
  • 17
  • 88
  • 152
1
vote
1 answer

How to configure home directories that are, at the same time, writable for apache

I've configured my apache to serve the public_html folders inside each user. Then I've configured virtual hosts that will access those folders. So the current status is depicted in the following example: I have a domain (foo-bar.com) that is served…
1
vote
1 answer

How to use MapWritable with SequenceFile? Hadoop

I am trying to use SequenceFile to pass data between two mapReduce programs. The data that I want to pass has the format >. For some reason it seems that some entries in the maps do not get passed from one program to the other. Here it's my code,…
0
votes
1 answer

Extending 3rd party class as Hadoop Writable with proxy

I have a third-party class that I am trying to use in Hadoop, and thus need to make have it implement Writable. The problem is that the way Hadoop uses Writable is to create an object o = SomeObject(), then call o.readFields(in) to de-serialize, and…
Noah Watkins
  • 5,446
  • 3
  • 34
  • 47
0
votes
2 answers

How do I assign a chmod value of 0777 at the point it the file is uploaded (PHP)?

My system features a conversation area which writes to and draws from a .txt file. I am obviously able to set the permissions through my FTP client but I'm looking to apply the writable functionailty to all files that are uploaded through my system…
Ollie Jones
  • 437
  • 1
  • 9
  • 16
0
votes
1 answer

How to get the content of a custom svelte store without calling update()?

I want to call a svelte custom store function without calling the update function. It feels ugly, especially since I don't want to update anything, I just want to query the store's content and returning a result. To simplify, I've extended the…
Gertjan Kruiger
  • 111
  • 2
  • 3
0
votes
1 answer

Error: the templates_c directory does not exist or is not writable

When launching my web application on local EasyPHP web server, I am still getting this : Error: the templates_c directory does not exist or is not writable Please make sure that the templates_c directory does exist in the root directory of the…
0
votes
0 answers

How to write persist in svelte?

I need to convert my store to a persisting store that uses a Localstorage to hold my data even if the user closes the browser. I have tried writing the code using Localstorage.setItem and getItem but unfortunately, It doesn't work properly. Can…
0
votes
0 answers

Scala Writeable of AnyContentAsMultipartFormData - play 2.6

I have those lines in my code implicit val anyContentAsMultipartFormWritable: Writeable[AnyContentAsMultipartFormData] = { MultipartFormDataWritable.singleton.map(_.mdf) } I had to upgrade my play version from play 2.5 to play 2.6.6, and…
Nili Al
  • 21
  • 3
0
votes
1 answer

In Kubernetes, can I have a deployment with both read only and writable files?

I am currently running a deployment that is pulling from a database and is set as read only. Unfortunately the deployment freezes on coaction without notice so I came up with the idea of having the code write to a log file and have the liveness…
boblerbob
  • 149
  • 3
  • 9
0
votes
1 answer

Writable Classes in mapreduce

How can i use the values from hashset (the docid and offset) to the reduce writable so as to connect map writable with reduce writable? The mapper (LineIndexMapper) works fine but in the reducer (LineIndexReducer) i get the error that it can't get…
codegeek21
  • 11
  • 2
0
votes
0 answers

Java when writing files what type do I use to make letters unreadble in a text editor

In Java I'm writing a data file that is essentially a save file. I know if I write the file as a .dat (UTF-8) when I open the file in a text editor the numbers are unreadable. In the same file text is completely readable. Is there a file format I…
JimmyMac
  • 1
  • 3
0
votes
1 answer

hadoop reducer not considering two equal custom writable objects as equal

I am trying to write a map reduce program that checks for common friends. I am using a custom writable (FriendPair) as key. Given the following input Tom Jerry,John John Jerry,Sarah,Tom It should output Jerry as the common friend for Tom and…
Jamesbond
  • 33
  • 3
0
votes
1 answer

Node.js Writable stream: write vs _write

I'm reading official Node.js docs to understand streams. I'm implementing Writable stream, but I can't understand what is the difference between write and _write. Quoting the docs from this section: All calls to writable.write() that occur between…
code_master5
  • 701
  • 1
  • 8
  • 18
0
votes
1 answer

Async/Await In NodeJS

This works in NodeJS but I have to use recordObject within the codeblock where it was created. It is not visible outside of the code block even if recordObject is declared at the beginning of the function because the function proceeds before the…
John Shearing
  • 249
  • 3
  • 11
1 2 3
8 9