Questions tagged [apache]

48111 questions
1

votes
1

answer
430

Views

Real-Time Excel Updates

I have a third party application that updates cell values by opening the excel file, setting values in cells, and writing (saving) the excel file. Suppose I have the excel spreadsheet open at all times, how I do have the spreadsheet reflect these changes in real-time? Every time there is an update,...
1

votes
1

answer
1.3k

Views

Conditional RewriteRule

I need to do conditional RewriteRule in .htaccess. I have rule for JS files, and rule for other requests. # Rule for js files RewriteRule ^client/js/([A-Za-z0-9./]+)$ server/js.php #Rule for other requests RewriteRule (.*) server/controller.php In that case of rule any request always go to controlle...
nkuhta
1

votes
2

answer
2.9k

Views

Camel Message filtering - body Content filtering

I'm new to Camel and looking to find an option to filter JMS topic msgs, based on the body content. I looked at different languages for filtering, like simple, OGNL, groovy etc, but unable to figure out how it can be applied for content based filtering Here's an example of the JMS msg/content I need...
user2709613
1

votes
2

answer
751

Views

str_replace PHP script can't handle foreign characters such as umlauts robustly

The following script does not always correctly catch and convert foreign characters. Could someone show me what I'm missing to get it to be more robust? New information: Pekka, you gave me the idea to check how the page emits without str_replace():
Carey G. Butler
1

votes
1

answer
1k

Views

PHP files in certain dir result in HTTP 500 error

I'm facing a strange situation. For a website some cronjobs are being executed. This all worked well until now; when I try to excecute a cronjob I'm getting no result. For some reason the URL is recognized by .htaccess trying to put it into the site with wrong $_GET parameters. The second parameter...
Ben
0

votes
0

answer
3

Views

Why does Confluent Control Center shows me just the connector of the worker which run on Port 8083

I replicate with confluent Replicator one Topic across 3 Kafka Clusters. but Why does Confluent Control Center shows me just the connectors from the worker which run on Port 8083 on my localhost although i have another one works on Port 8084. is there any way to see the Connectors form both Kafka Wo...
mrdos01
0

votes
0

answer
6

Views

How to load CSV file in apache spark SCALA

How to load CSV file I have two CSV file users and tweets Where in tweets table I split the record by ',' But In tweet field between two quotes there are so many commas so I'm not getting proper output or primer data So what is the correct code in Scala?
JD Patil
1

votes
0

answer
13

Views

Apache camel sftp org.apache.camel.NoTypeConversionAvailableException: No type converter available to convert java.io.InputStream

Currently I'm stuck with Downloading files from ftp server due to type conversion. So the route mentioned below is being called from a pipeline which has my custom POJO as the body set already. And the custom pojo is as below : public class DirectoryLocationListing { private String domainName; priva...
Parul Chauhan
1

votes
2

answer
1.2k

Views

Apache downloads the php file after updating php version from 5.3.28 to 5.4.25

I am running php on Debian 6 with mod_fcgid with DotDeb packages. Once I upgraded php to version 5.4.25, apache downloads the php files as it does not recognize the handlers. I am not updating any config files. Once I revert back to 5.3.28 it works ok. I am not able to track anything in the error lo...
Martin Taleski
1

votes
3

answer
12.6k

Views

Autosize column width using poi

I am appending data to the existing excel using POI. But on appending the data, the excel headers which are already present before the editing are compressed to small areas. Can someone please suggest me how to avoid this? I have applied even autoSize after appending data, but of no use. FileInputSt...
rick
1

votes
1

answer
950

Views

Play framework only Error: object httpclient is not a member of package org.apache.commons

I have two import in scala on play framework. However play keep telling "me object httpclient is not a member of package org.apache.commons". I did add commons-httplclient.jar as external jar in .classpath(in eclipse). I created a console application in eclipse to verify and there is no error at all...
user2512057
1

votes
1

answer
1.2k

Views

Comparing two files using commons or Javascript

I need to check if any of the 4 uploaded files are same, this check might be on the JSP or Java-Servlet side. I've been using var FileName1 = document.getElementById('fileChooser1').value; var FileName2 = document.getElementById('fileChooser2').value; if(FileName1 == FileName2) { alert("same files...
0

votes
0

answer
5

Views

spark select columns by type

I want to have a function to dynamically select spark Dataframe columns by their datatype. So far, I have created: object StructTypeHelpers { def selectColumnsByType[T
Georg Heiler
0

votes
0

answer
4

Views

Tasks allocation to executors and ordering inside a Stage

Spark breaks a job into stages, which broadly speaking represent shuffle boundaries between the different stages and act as a barrier, i.e. a task can be applied to all partitions in parallel without them depending on each other. In the DAG screenshot added below, stage 1 consists of 4 different st...
Anton.P
1

votes
1

answer
2k

Views

Trying to setup mod-security but mod-security.conf is missing

I'm trying to setup an apache2 web server on the new Ubuntu 14.04. I have been following the instructions found here and everything was going great until I reached the part where I'm told to edit mod-security.conf. This file does not exist. The author says to edit it in the /etc/apache2/mods-ena...
Luft
1

votes
1

answer
5.6k

Views

How to setup CardDAV and CalDAV in Apache Server?

If my question is stupid, I'm sorry, I'm a newbie, and totally have no idea if that's possible or something. I have already set up my personal http server, including webdav, using apache and tomcat on my PC, so that my android and ios devices can get access to my computer and do some data transfer...
cdytoby
1

votes
2

answer
523

Views

Python Code is not working on Browser

i am new to python and anyhow i managed to install Python on my Linux shared hosting. When I am trying to execute Python code in Shell terminal its working fine but i am not able to execute this code in browser directly and it just shows python code as text. In Shell: python public_html/index.py (...
user3667167
1

votes
1

answer
625

Views

Controling distribution of bolts in Storm?

I have an EvaluationBolt (for e.g. memory monitoring) and I want to make sure one executor for it runs on every worker process (which in my case is one per physical node, i.e. supervisor.slots.ports is configured to only port 6700). On the topic I found this question: How bolts and spouts are shared...
t-h-
1

votes
2

answer
1.7k

Views

How do I use a compressed columnar store in Spark SQL?

Objective: I'd like to user Spark on a sparse dataset. I understand that SparkSQL now supports columnar data stores (I believe via SchemaRDD). I've been told that compression of the columnar store is implemented but currently turned off by default. I can make sure that Spark is store my my dataset...
Bill_L
1

votes
1

answer
1.8k

Views

HttpClient 4.x: how to retain cookies across multiple requests?

I need to use Apache HttpClient (4.x) to make 3 consecutive web calls and essentially log me into my app programmatically: An HTTP GET to a login page (http://myapp01.example.com) The server will respond to this GET with a response cookie "JSESSIONID" An HTTP POST to the same page (using the same JS...
IAmYourFaja
1

votes
2

answer
600

Views

Jboss EAS + Apache mod_proxy don't load image

I created a web application that runs on a ubuntu server with JBoss EAS 6.2 and Apache2 with mod_proxy enabled, but when I open the page in the browser, the images do not load. This is my Apache configs: ProxyRequests On ProxyPreserveHost On ProxyPass / http://pegabuzz.com:8080 ProxyPassReverse...
0

votes
0

answer
18

Views

Don't understand this pytz AttributeError: 'UTC' object has no attribute 'utc_timezone'

Problem: execution_date_to_search_for = pytz.timezone('UTC').utc_timezone.localize(datetime.strptime((process["airflow_execution_date"]).replace("T", " "),'%Y-%m-%d %H:%M:%S.%f')) [2019-02-20 11:56:42,673] {base_task_runner.py:101} INFO - Job 661: Subtask kill_halted_tasks AttributeError: 'UTC' obje...
Raj
0

votes
0

answer
4

Views

Camel Java DSL: Update the next polling request param using the value from the response

I am new to Apache camel, this is what I am trying to figure out. In a sample code below, I am trying to use the property - "value" in the request param in next polling request. String valueFromTheResponse= "" m.addRouteBuilder(new RouteBuilder() { @Override public void configure() throws Exception...
user1920269
0

votes
0

answer
10

Views

Read excel to get row number and file extension for objects

I am using apache poi with java 1.8 in my application.In my page try to read excel get embedded objects like below code.I need how to get row number of embedded objects and file extension for this oleObject. Workbook workbook = WorkbookFactory.create(new File(path)); XSSFWorkbook fWorkbook = (XSSF...
Varathan Devaraj
0

votes
0

answer
6

Views

Pointing webserver to load .html page and not subdirectory index

So I have been searching for a few hours now and have not found the answer to my problem. So I have a website that I was wanting to take the page extension off e.g. .html / .php etc.. and I had found that I could include the below code in the .htaccess file. RewriteEngine on RewriteCond %{REQUEST_FI...
Richard Motion
0

votes
0

answer
5

Views

php 7 module could not be found?

I'm in the midst of installing Apache, PHP, and MySQL via following a step by step YT video (link). The issue that I'm running into is during the step that takes place at approximately 11:00. The error message states the following "can not load c:/php/php7apache2_4.dll into server: the specified mod...
revup88
0

votes
0

answer
5

Views

scala spark, how do I merge a set of columns to a single one on a dataframe?

I'm looking for a way to do this without a UDF, I am wondering if its possible. Lets say I have a DF as follows: Buyer_name Buyer_state CoBuyer_name CoBuyers_state Price Date Bob CA Joe CA 20 010119 Stacy IL Jamie IL...
NutellaAddict
1

votes
1

answer
2.8k

Views

How to do Excel's “Convert to Number” in Java

I am reading data from Excel using Apache POI. I want to convert some cells to number while reading in Java as following: Input 01.0234500 Output 1.02345 Input 412206362371 Output 4.12206E+11 Input 1234.201400002345 Output 1234.2014 When I am using "Convert to Number" in Excel, it works fine. But I...
Anup Ganatra
1

votes
2

answer
731

Views

Can I use Apache Shiro for a hierarchical user model?

I'm designing an application where users are organized in multiple levels hierarchies. Users can be assigned to any levels of this hierarchy with a role. organization hierarchy example http://i59.tinypic.com/14ya3vd.png So, I want to know if there is a way to adapt Apache Shiro to this hierarchies,...
David Ballester
1

votes
2

answer
590

Views

Chrome favicon.ico GET request

Given the following script: Using http://www.example.com/testing/chrome.php?x=123 as the URI produces the expected results: array(1) { ["x"]=> string(3) "123" } But when viewing the system log and Apache access log, I have another GET variable named "cid" whose value is "favicon.ico" when using the...
user1032531
0

votes
1

answer
51

Views

EMR conf spark-default settings

I am using configuration file according to guides Configure Spark to setup EMR configuration on AWS, for example, changing the spark.executor.extraClassPath is via the following settings: { "Classification": "spark-defaults", "Properties": { "spark.executor.extraClassPath": "/home/hadoop/mongo-hadoo...
ZhouQuan
0

votes
0

answer
43

Views

How to make restart-able producer?

Latest version of kafka support exactly-once-semantics (EoS). To support this notion, extra details are added to each message. This means that at your consumer; if you print offsets of messages they won't be necessarily sequential. This makes harder to poll a topic to read the last committed message...
JR ibkr
1

votes
1

answer
1.5k

Views

Apache POI logging, does not log anything

I'm trying to log out to help my find the error, but using the information from the apache poi page does not log anything, I expected something to happen in the console. System.setProperty("org.apache.poi.util.POILogger", "org.apache.poi.util.SystemOutLogger"); System.setProperty("poi.log.level", PO...
Viktor Mellgren
1

votes
1

answer
3.3k

Views

Kafka simple consumer intermittently missing messages

I have a Kafka application from where I have been consuming messages using kafka-console-consumer.sh as following: $./kafka-console-consumer.sh --zookeeper zookeeperhost:2181 --topic myTopic which gives all the messages which I write to Kafka broker through a Kafka consumer without any miss. Recentl...
abhishek08aug
1

votes
1

answer
2.6k

Views

Camel Dead Letter Channel Processor

Below is my camel route code .errorHandler(deadLetterChannel("jmstx:queue:ErrorHandler") .useOriginalMessage() .maximumRedeliveries(1)); from("jmstx:queue:ErrorHandler") .log("Sending Exception to MyErrorProcessor") .bean(MyErrorProcessor.class); from("file:/E:/Target/").routeId("Route1") .s...
Balaji Kannan
1

votes
1

answer
621

Views

debugging php on a live server using var_dump or echo

Im using PHP on a localhost server. Im using the apache server preinstalled with OS X Yosemite, with phpmyadmin. Im sending it some post data through an app I'm testing but want to be able to view the (presumed JSON Dictionary) data that is being received at in the $_POST variable. Since the script...
vitamike
0

votes
0

answer
4

Views

Hadoop's Configured equivalent in Spark

Hadoop provides Configured and Configurable to let classes access Configuration object. Is there any similar way in Spark other than passing SparkConf via constructor?
Majid Azimi
0

votes
0

answer
2

Views

mod_security: Block only if a client causes more than 10 error messages

) I am currently trying to create a list of whitelists in modsecurity for my application. To reduce false positives i thought about something like this: If a user causes more than 10 error message (mod security messages) it will be blocked then. Is something like this possible?
hukachaka
0

votes
0

answer
2

Views

Using JDBC inside Spark application

I wrote a Spark application for bulk-loading a Phoenix Table. Everything worked for a few weeks now, but for a few days I get some Problems with duplicated rows. This was caused by faulty table stats. However, a possible Workaround for that would be to delete and re-generate the stats for this table...
D. Müller
0

votes
0

answer
4

Views

Version of Kafka Connector For Use in Spark Streaming

The latest version of Kafka available for download is Kafka 2.1.0. But in order to use Kafka in Spark Streaming, or Spark Structured Streaming, we use respectively the following connectors: spark-streaming-kafka-0-10_2.11 spark-sql-kafka-0-10_2.11 My question is that it seems that the connectors ar...
user1888243

View additional questions