Hadoop mapreduce doesn’t use copyied file

Hadoop version: 2.10.2 JDK version: 1.8.0_291 I’m trying to start map_reduce using python. I’ve configured hadoop on new hduser_. After running this command in terminal: hadoop jar $HADOOP_HOME/share/hadoop/tools/lib/hadoop-streaming-2.10.2.jar \ -input orders.txt \ -output ccp-output \ -file /tmp/cross/pairs/mapper.py \ -mapper mapper.py \ -file /tmp/cross/pairs/reducer.py \ -reducer reducer.py I’ve got this exception: Log that everything start’s fine: … Read more

EF on Model creation with one to many relation cause cycle overflow

I hope you will help me. I have to entities in EF with one-to-many relation First: public class DefaultEvent { public int DefaultEventId { get; set; } public virtual ICollection<DefaultCommitteeAgenda> DefaultCommitteeAgendas { get; set; } } Second: public class DefaultCommitteeAgenda { public int Id { get; set; } public int DefaultEventId { get; set; } … Read more

How to read cached request body multiple times in spring-cloud-gateway – the right way

When using spring cloud gateway it’s possible to cache the request body as DataBuffer either by using a global filter or by activating it per route via an EnableBodyCachingEvent. As soon as a Predicate or Filter reads from this DataBuffer it’s internal read position gets modified. (i.e when using the DataBuffer::asInputStream). Subsequent filters share the … Read more

.NET 7.0 iOS and Android Workloads NETSDK1202

I’m creating a new mobile app using .NET. I originally installed the iOS and Android workloads using .NET 6 but I saw the NETSDK1202 warning about these workloads being unsupported now in .NET 6. To solve this I updated the target framework to be net7.0-ios and net7.0-android. However I am still seeing the NETSDK1202 warning … Read more

Multithreading in CLI/C++ performance issues

I got an application in CLI/C++ where i want to use Shared Memory for Signal Transfer. When pressing the ConnectButton for the first time nothing happens. Only after three or more tries the connection works, but the program lags a lot. public: System::Void btnStartConnect_Click(System::Object^ sender, System::EventArgs^ e) { ConnectButtonPressed = true; msclr::interop::marshal_context context; shmNameA = … Read more

MUI sx prop used with emotion js

I’m trying to get the sx props to return plain css, this code: import { unstable_styleFunctionSx as styleFunctionSx, SxProps } from “@mui/system”; import { css } from “@emotion/react”; import { CustomTheme } from “../..”; interface GetResponsiveStyleArgs { sx?: SxProps; theme: CustomTheme; } export const getResponsiveStyle = (args: GetResponsiveStyleArgs) => { const { theme, sx = … Read more

EPPLus don’t read default height from excel

When I’m trying to read default height by EPPlus it always returns me 15. I was checked, function GetXmlNodeDouble returns number, but there are another function, where are function returns ” “. public double DefaultRowHeight { get { if(double.IsNaN(_defaultRowHeight)) { _defaultRowHeight = GetXmlNodeDouble(“d:SheetFormatPr/@DefaultRowHeight”); if(double.IsNaN(_defaultRowHeight)) { _defaultRowHeight = 15; // Excel default height } } return … Read more